Getting the below mentioned error while trying to connect to cluster from worker node.
Cluster version is 1.10.4
and node version is 1.11.0
[discovery] Successfully established connection with API Server "10.148.0.2:6443"
[kubelet] Downloading configuration for the kubelet from the "kubelet-config-1.11" ConfigMap in the kube-system namespace
configmaps "kubelet-config-1.11" is forbidden: User "system:bootstrap:7fho7b" cannot get configmaps in the namespace "kube-system"
Definitely check your version of kubeadm and kubelet, make sure the same version of these packages is used along all of your nodes. Prior to installing, you should "mark and hold" your versions of these on your hosts:
kubelet --version
kubeadm version
sudo apt-get install -y docker-ce=18.06.1~ce~3-0~ubuntu kubelet=1.12.2-00 kubeadm=1.12.2-00 kubectl=1.12.2-00 --allow-downgrades
sudo apt-mark hold docker-ce kubelet kubeadm kubectl
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments