Regenerate Kubernetes Join Command to Join Work Node

When we first init a K8S cluster, it will output the join command for us to join work node. But the token, by default, is only valid for 24 hours so we need to generate a new one once it expired or if we did not copy it for later use be expiration.

Generate new token to join work node

Use command below to generate the join command for work node.

kubeadm token create --print-join-command

Leave a Reply

Your email address will not be published. Required fields are marked *