OpenShift Container KUBECONFIG /.kube permission denied message
Issue
- When using a service account from within a container, notice the following error message:
error: KUBECONFIG is set to a file that cannot be created or modified: /.kube/config
mkdir /.kube: permission denied
You can unset the KUBECONFIG variable to use the default location for it:
unset KUBECONFIG
Environment
- Red Hat OpenShift Container Platform
- 3.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
