Unable to connect worker node to kubernetes cluster

Sanket Shirode

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"
texasdave

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:

check your current version of each:

kubelet --version

check kubeadm

kubeadm version

if they're different, you've got problems. You should reinstall the same version among all your nodes and allow downgrades. My versions in the command below are probably older than what is currently out, you can replace the version number with some more up to date, but this will work:

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

then, once they're installed, mark and hold them so they can't be upgraded automatically, and break your system

sudo apt-mark hold docker-ce kubelet kubeadm kubectl

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Unable to connect a node to cluster

Unable to kubectl connect my kubernetes cluster

Google cloud kubernetes unable to connect to cluster

How to use the master node as worker node in Kubernetes cluster?

Shell (ssh) into Azure AKS (Kubernetes) cluster worker node

pod in Kubernetes cluster is unable to connect to internet with egress networkpolicy

Unable to connect kubernetes cluster to azure using arc enabled kubernetes cluster for checking the workloads and monitoring the clusters

Kubernetes Cluster master/ Worker Nodes

Kubernetes - Can you build a cluster with master node on x86 and worker node on arm?

Unable to connect to mongodb cluster

I want to ping (icmp) monitor the worker nodes that make up the kubernetes cluster without using the internal IP of the node

Can we create kubernetes multiple node (master-worker)cluster on window? if yes,How?

Kubernetes Worker Node in Status NotReady

Connect kibana to elasticsearch in kubernetes cluster

How to connect Terraform to Kubernetes cluster

kubernetes connect to node postgres

unable to scale down Kubernetes cluster

AKS unable to create Worker Node

Unable to create Kubernetes cluster on Google Kubernetes Engine

Unable to connect to slave in spark cluster

Does kubernetes restore the worker node if worker node dies?

Deployment to the particular Kubernetes cluster node

Same node in multiple kubernetes cluster

Node cluster not spawning phantom instances in the proper worker

Redistribute load after a Worker node is returned to the cluster

Node JS - Log worker cluster last exception

unable To connect in Node js

Local Dask worker unable to connect to local scheduler

Unable to connect to Cockroach pod in Kubernetes