OpenShift Container KUBECONFIG /.kube permission denied message

Solution In Progress - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content