Getting "error: open /var/run/secrets/kubernetes.io/serviceaccount/token: permission denied" error and pods are failing to schedule on node(s).
Issue
- Deploy pod is failing to schedule any pod on a specific node(s), its logs shows the error:
error: open /var/run/secrets/kubernetes.io/serviceaccount/token: permission denied
- Generic secrets mounted as volumes in the deployment config gives the permission denied error, new pods are getting stuck in ContainerCreating or Crashloopbackoff state.
Environment
- Red Hat OpenShift Container Platform
- 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.