I tried to figure out solution for the task.
I join the node node02 this way:
How to configure kubeadm from file /etc/kubeadm.conf and set master02 as the master ?
Both kubeadm join
and kubeadm init
takes a parameter --config
which can point to the path of kubeadm config file.
If you do kubeadm init
or kubeadm join --control-plane
on a node it automatically becomes master node.