gcs-fuse-csi-driver: failed to find the sidecar container in Pod spec
Hi I am trying to use examples/static/pv-pvc-deployment.yaml but when I describe the pod getting below error
MountVolume.SetUp failed for volume "gcs-fuse-csi-pv" : rpc error: code = FailedPrecondition desc = failed to find the sidecar container in Pod spec
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (7 by maintainers)
Hi @DattatrayHinge, are you facing the same issue as @guru91197 reported?
Can you double check if the annotations are under
spec.template.metadata.annotationsin a deployment spec? Note that it is not under the deployment annotations, it’s under the Pod template annotations.GKE - https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/cloud-storage-fuse-csi-driver#mounting-flags security-contex -> https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod