When adding a control plane node, two things need to be created, an encrypted
certificate bundle, and a join token.
Run the following command to connect to a control plane node's OS console and
create the certificate bundle:
ocne cluster console --node control_plane_name --direct -- kubeadm init phase upload-certs --certificate-key certificate-key --upload-certs
Replace control_plane_name with a control plane node that's
running in the Release 1 cluster.
Important:
This isn't the target node, but a separate control plane node that's used to run
the kubeadm init
command.
Replace certificate-key with the output displayed when the
Ignition information for control plane nodes was generated using the ocne
cluster join
command.
Run the following command to create a join token:
ocne cluster console --node control_plane_name --direct -- kubeadm token create token
Replace control_plane_name with a control plane node that's
running in the Release 1 cluster.
Replace token with the output displayed when the Ignition
information for control plane nodes was generated using the ocne cluster
join
command.
Important:
If the token was generated more than 24 hours prior, it has likely expired, and
you must regenerate the Ignition files, which also generates a fresh token.
Use the kubectl get nodes
command to confirm the control plane
node is added to the cluster. This might take a few moments.
kubectl get nodes