Usually, the “forbidden” response means a communication issue between the kubectl and Kubernetes API. There are two possibilities:
Kubectl is not configured:
- Verify if the /etc/kubernetes/admin.conf file is present
- Copy it to the default configuration location:
Proxy issues. After testing the following configurations, make sure to make them permanent by using your favorite method to manage environment properties:
- Identify your Kubernetes cluster IP:
- Include the server IP and its subnets in the no_proxy and NO_PROXY variables:
- As an alternative to the no_proxy option, remove all the proxy configurations:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article