Issue#

You try to add a new worker (or control-plane) node with the kubeadm join command saved from kubeadm init, but it fails during preflight:

[preflight] Running pre-flight checks error execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "abcdef" To see the stack trace of this error execute with --v=5 or higher

When joining an extra control-plane node, you may instead see an error about the certificate key, for example:

error execution phase control-plane-prepare/download-certs: error downloading certs: error downloading the secret: Secret "kubeadm-certs" was not found in the "kube-system" Namespace. This Secret might have expired. Please, run `kubeadm init phase upload-certs --upload-certs` on a control plane to generate a new one

Cause#

The bootstrap token printed by kubeadm init has a default TTL of 24 hours. After it expires, kubeadm deletes the token, and its JWS signature is removed from the cluster-info ConfigMap in kube-public. A joining node can no longer verify the API server, so the join fails.

For control-plane joins, the kubeadm-certs Secret created by --upload-certs is deleted after 2 hours, so the old --certificate-key stops working too.

Solution#

  1. On an existing control-plane node, check the current tokens:
kubeadm token list

If the list is empty, or the token in your join command is missing or expired, create a new one.

  1. Generate a fresh token and the full join command:
kubeadm token create --print-join-command

This prints something like:

kubeadm join 10.0.0.10:6443 --token x7k2pq.9f3b1c8d2e4a6f70 --discovery-token-ca-cert-hash sha256:3c1f...e9a2
  1. For a control-plane node only: re-upload the certificates and get a new certificate key:
sudo kubeadm init phase upload-certs --upload-certs

Then include the key it prints in the join command:

kubeadm token create --print-join-command --certificate-key <KEY_FROM_ABOVE>

The output already contains --control-plane --certificate-key ....

  1. On the new node, clean up the failed join attempt:
sudo kubeadm reset -f
  1. Run the new join command on the node:
sudo kubeadm join 10.0.0.10:6443 --token x7k2pq.9f3b1c8d2e4a6f70 \ --discovery-token-ca-cert-hash sha256:3c1f...e9a2

Tip: If you only need the CA hash, you can compute it on a control-plane node:

bash openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt \ | openssl rsa -pubin -outform der 2>/dev/null \ | openssl dgst -sha256 -hex | sed 's/^.* //'

Note: You can create a longer-lived token with kubeadm token create --ttl 48h --print-join-command. A --ttl 0 token never expires, which is a security risk, so avoid it.

Verify#

On a control-plane node, confirm that the new node registered and becomes Ready:

kubectl get nodes -o wide

To confirm the token is valid before you run the join, check that it appears with a future expiry:

kubeadm token list