How to create a container/pod successfully mounted with PVC with Storage class created with a specific UID

10/8/2021

I have created a Storage class with Uid and Gid in mountOptions for a trident Storage class as below:

mountOptions:

  • uid=1000
  • gid=1000

And created assoicated PV and PVC with the newly created Storage Class. The PV and PVC are created successfully. Then mounting to this PVC tried to create a pod but it is stuck at Container Creating phase with failed volume mount error in the Events of the pod.

Anything that needs to be done additionally for creating the pod successfully?

-- bhargavi yeramaneni
containers
google-cloud-platform
kubernetes
kubernetes-pvc
mounted-volumes

0 Answers