mosadm merge-kube-config
Merge Kubernetes configuration files into MATLAB Online Server installation
Description
mosadm merge-kube-config merges the cluster Kubernetes® configuration located at /etc/kubernetes/admin.conf into
the MATLAB®
Online Server™
Kubernetes configuration located at ~/.kube/config. The merged
configuration makes it easier to run the kubectl command-line tool for
managing the Kubernetes cluster that MATLAB
Online Server runs in.
mosadm merge-kube-config
merges Kubernetes configuration files using the specified configuration options.option1 ... optionN
Note
mosadm merge-kube-config requires sudo administration
privileges.
Examples
sudo ./mosadm merge-kube-configUsing kubeconfig from /etc/kubernetes/admin.conf Will merge the current config from ~/.kube/config with the one in /etc/kubernetes/admin.conf mkdir -p /home/ubuntu/.kube cp /etc/kubernetes/admin.conf /home/ubuntu/.kube/config chown -R ubuntu:ubuntu /home/ubuntu/.kube
Input Arguments
One or more configuration options, specified as strings corresponding to valid configuration options from this table.
Common to All mosadm Commands
| Option | Description |
|---|---|
| Name of the MATLAB
Online Server
Specify
Example:
Default:
|
| Name of the MATLAB
Online Server
Specify
Example:
Default:
|
| Print out the commands that would have run without this option specified but do not run the operation. Specify this option to test that the operation produces the expected results before actually executing it. |
| Output help for mosadm merge-kube-config to
the command line. |
| Path to the Kubernetes cluster configuration file. Specify
Example:
By
default,
|
| MATLAB
Online Server root folder, specified as an
absolute path or a path relative to the current
folder, that is, the folder in which you can run
Default: |
| Name of the MATLAB
Online Server
Specify
Example:
Default:
|
| Print only the most useful or relevant output
from the |
--skip-log-file | Skip creating the
|
--skip-prompt, -y | Force acceptance of the terms of use for the
|
--tmp-dir
| Name of MATLAB Online Server temporary folder to use. Specify
By default,
|
--verbose | Output extra details about the
|
Version History
Introduced in R2020a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)