mosadm bootstrap-node
Install Kubernetes and configure single-node Kubernetes cluster for MATLAB Online Server
Since R2020a
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
Bootstrap Node
sudo ./mosadm bootstrap-node
Input Arguments
option1 ... optionN
— One or more configuration options
strings
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
Bootstrap Node for Ubuntu Systems
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.
Coredns
is installed (to allow DNS lookups within the Kubernetes pods).Kube-proxy
is removed.Kube-router
is 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.io
docker.io
The following operating system utilities are installed as part of the bootstrap process:
unzip
gettext
jq
ca-certificates
curl
software-properties-common
git
nfs-common
ipvsadm
kubelet
(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_dh
ip_vs_ftp
ip_vs
ip_vs_lblc
ip_vs_lblcr
ip_vs_lc
ip_vs_nq
ip_vs_rr
ip_vs_sed
ip_vs_sh
ip_vs_wlc
ip_vs_wrr
Enables firewall
By default, only
ssh
(22),http
(80), andhttps
(443) are allowed.All other ports are disabled if
ufw
is already installed (on Ubuntu distribution,ufw
is installed by default).
Enables high precision timestamps in
syslog
.Disables swap (disabling swap is required by the Kubernetes or
kubelet
to bootstrap).
Bootstrap Node for Red Hat or CentOS Systems
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 0
sed -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.
Coredns
is installed, to allow DNS lookups within the Kubernetes pods.Kube-proxy
is removed.Kube-router
is 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.io
docker.io
The following operating system utilities are installed as part of the bootstrap process:
unzip
gettext
jq
ca-certificates
curl
software-properties-common
git
nfs-common
ipvsadm
kubelet
(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_dh
ip_vs_ftp
ip_vs
ip_vs_lblc
ip_vs_lblcr
ip_vs_lc
ip_vs_nq
ip_vs_rr
ip_vs_sed
ip_vs_sh
ip_vs_wlc
ip_vs_wrr
br_netfilter
Enables firewall
By default, only
ssh
(22),http
(80), andhttps
(443) are allowed.All other ports are disabled if
firewalld
is already installed (on Red Hat distribution,firewalld
is installed by default).
The script enables high precision timestamps in
syslog
.Disables swap (disabling swap is required by the Kubernetes or
kubelet
to 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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- 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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)