mosadm bootstrap-node
Install Kubernetes and configure single-node Kubernetes cluster for MATLAB Online Server
Description
mosadm bootstrap-node installs Kubernetes®, initializes a single-node Kubernetes cluster on the machine where it is being installed, and customizes the cluster
for MATLAB®
Online Server™.
The exact commands executed by this command depend on the operating system:
For Ubuntu® systems, see Bootstrap Node for Ubuntu Systems.
For Red Hat® or CentOS® systems, see Bootstrap Node for Red Hat or CentOS Systems.
mosadm bootstrap-node
initializes the node using the specified configuration options.option1 ... optionN
Note
mosadm bootstrap-node requires sudo administration
privileges.
Examples
sudo ./mosadm bootstrap-nodeInput Arguments
One or more configuration options, specified as strings corresponding to valid configuration options from this table.
Specific to mosadm bootstrap-node
| Option | Description |
|---|---|
| Preserve the existing Docker® configuration on the machine where you are installing
MATLAB
Online Server. If you do not specify this option, then
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
For more details on Docker daemon configuration files, see the Docker Daemon documentation (Docker). |
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 bootstrap-node 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
|
More About
When bootstrap-node is executed on an Ubuntu distribution, the following changes are applied to the machine.
After the operating system is configured with the following settings, the Kubernetes single-node cluster is bootstrapped.
Corednsis installed (to allow DNS lookups within the Kubernetes pods).Kube-proxyis removed.Kube-routeris installed as the container network interface and proxy server, and the network policy provider.The current node is untainted to allow Kubernetes to schedule pods.
The following repositories are added to the package manager apart from the pre-built defaults:
https://pkgs.k8s.io/core:/stable:/v1.30/deb/Release.key(key)https://pkgs.k8s.io/core:/stable:/v1.30/deb/
apt-get update is called within the script to update all the base
utilities of the operating system.
mosadm bootstrap-node pulls the base container image flavors used to install and configure MATLAB
Online Server from these registries:
registry.k8s.iodocker.io
The following operating system utilities are installed as part of the bootstrap process:
unzipgettextjqca-certificatescurlsoftware-properties-commongitnfs-commonipvsadmkubelet(1.30)kubeadm(1.30)kubectl(1.30)helm(3.7.0)
The script allows and configures the following:
Bridge networking
IP forwarding
Enables the following IPVS modules:
Ip_vs_dhip_vs_ftpip_vsip_vs_lblcip_vs_lblcrip_vs_lcip_vs_nqip_vs_rrip_vs_sedip_vs_ship_vs_wlcip_vs_wrr
Enables firewall
By default, only
ssh(22),http(80), andhttps(443) are allowed.All other ports are disabled if
ufwis already installed (on Ubuntu distribution,ufwis installed by default).
Enables high precision timestamps in
syslog.Disables swap (disabling swap is required by the Kubernetes or
kubeletto bootstrap).
Note
For Red Hat or CentOS, set the SELINUX profile to permissive mode. The following commands can be
executed with sudo privileges.
# Set SELinux in permissive mode (effectively disabling it)
setenforce 0sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
When bootstrap-node is executed on Red Hat or CentOS distributions, the following changes are applied to the machine.
After the operating system is configured with the following settings, Kubernetes single-node cluster is bootstrapped.
Corednsis installed, to allow DNS lookups within the Kubernetes pods.Kube-proxyis removed.Kube-routeris installed as the container network interface and proxy server, and the network policy provider.The current node is untainted to allow Kubernetes to schedule pods.
The following repositories are added to the package manager apart from the pre-built defaults:
https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key(key)https://pkgs.k8s.io/core:/stable:/v1.30/rpm/
yum update is called within the script to update all the base
utilities of the operating system.
mosadm bootstrap-node pulls the base container image flavors used to install and configure MATLAB
Online Server from these registries:
registry.k8s.iodocker.io
The following operating system utilities are installed as part of the bootstrap process:
unzipgettextjqca-certificatescurlsoftware-properties-commongitnfs-commonipvsadmkubelet(1.30)kubeadm(1.30)kubectl(1.30)helm(3.7.0)
The script allows and configures the following:
Bridge networking
IP forwarding
Enables the following IPVS modules:
Ip_vs_dhip_vs_ftpip_vsip_vs_lblcip_vs_lblcrip_vs_lcip_vs_nqip_vs_rrip_vs_sedip_vs_ship_vs_wlcip_vs_wrrbr_netfilter
Enables firewall
By default, only
ssh(22),http(80), andhttps(443) are allowed.All other ports are disabled if
firewalldis already installed (on Red Hat distribution,firewalldis installed by default).
The script enables high precision timestamps in
syslog.Disables swap (disabling swap is required by the Kubernetes or
kubeletto bootstrap).
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)