Pods cannot access a shared volume with permission denied error in OpenShift 4

Solution Verified - Updated -

Issue

  • When running different pods that share a PVC one of the pods gets permission denied errors on that volume.
  • When running pods that share a PVC one of the pods set ups a different SELinux context for the files on that volume.
  • When running differents pods with added capabilities and they share a PV volume one of the pods loses access to the volume.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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