I'm getting the following error, after running the kubeadm join:
error :
[kubelet] Downloading configuration for the kubelet from the "kubelet-config-1.12" ConfigMap in the kube-system namespace
Unauthorized
but the kubelet and kubeadm versions are same, but I'm still getting this error.
What's the way to authorize it?
Not sure how you are joining your cluster but you join your cluster with something like this:
kubeadm join <ip-of-your-master>:6443 --token <token> --discovery-token-ca-cert-hash sha256:<hash-for-cert-disc>
You get both when you first run kubeadm init
on your master(s). The token expires after some time in which case you need to create a new token with kubeadm create token
.
You are using the wrong command. Try kubeadm token create
instead of kubeadm create token
.