0

A single master cluster cannot be joined by any worker nodes. After creating a token on master and try to join on a worker node using:

kubeadm join master:6443 --token pcbl1u.3zh7pjyoa9xsji37     --discovery-token-ca-cert-hash sha256:f2dd6f885025dcdfe2f1734588cd216859f86d5caf080d954fdecb74134de1eb --v=5

I would get the error:

[discovery] Failed to connect to API Server "master:6443": failed to parse cluster CA from the cluster-info configmap: data does not contain any valid RSA or ECDSA certificates

But the configmap in question on the master node DOES contain CA cert data. I verified it using:

kubectl get cm configmap -n kube-public

Although the certificate-authority-data in the configmap IS different from the certificate-authority-data in ~/.kube/config, is this expected? Pls help

I did overwrote the CA cert data in comfigmap using the data from .kube/config, but getting the same error.

Armin
  • 9
  • 2

0 Answers0