Kubernetes Control Plan - All kubectl commands fail with 403 Forbidden

4/29/2021

OS: Redhat 7.9

Docker and Kubernetes (kubectl,kubelet,kubeadm) installed as per the documentation. Kuberenetes cluster initialized using

sudo kubeadm init

After this all, on checking 'docker ps', find all the services up.

But all kubectl commands except for 'kubectl config view' fail with error 'Unable to connect to the server: Forbidden'

-- Srini M
kubernetes

1 Answer

4/30/2021

The issue was with corporate proxy. I had to set the 'no_proxy' as ENV variable and also as part of docker proxy and this issue got resolved.

-- Srini M
Source: StackOverflow