-
OPTIONAL: If you want to add a network proxy, see Configuring a proxy
-
cmtadm preflight-check HOSTNAME
-
cmtadm prepare --control-plane HOSTNAME CLUSTER_NAME [[KUBERNETES_DISTRO=]KUBERNETES_VERSION]
(
KUBERNETES_DISTRO
is optional; RKE2 will be used by default on openSUSE and SLES; kubeadm is the default on Debian, Ubuntu, and RHEL;KUBERNETES_VERSION
is only necessary if you don't want to use the latest version of Kubernetes) -
[Wait until cmtadm prepare completes]
cmtadm setup-control-plane [CNI] [POD_NETWORK_CIDR]
- [Wait until cmtadm setup-control-plane completes]
If you intend to add worker nodes to your cluster, continue to Setup a worker node; if you intend to use the control plane as a worker node, see Use the control plane as a worker node.
If you wish to use the control plane as a worker node, you can do so by removing the control plane taint.
cmtadm untaint-control-plane
If you intend to create a large cluster (hundreds of worker nodes),
especially if those nodes are running from virtual machines,
it is recommended that you pass none
as CNI.
Once all worker nodes have been added you can then run cmtadm setup-cni
with the CNI you want to use.