Kubernetes persistent volume claims: These are requested by pods in a cluster, from a storage pool that is pre-defined (or else, dynamically allocated).
Questions tagged [kubernetes-pvc]
351 questions
4
votes
1 answer
Resized PV & PVC are not applicied to Pod
I've a AKS cluster and I'm trying to resize the PVC used. Actually the PVC has a capacity of 5Gi and I already resized it to 25Gi:
> kubectl describe pv
Name: mypv
Labels: …

Nrgyzer
- 783
- 1
- 14
- 38
4
votes
0 answers
Can different PV be associated to same EFS volume in EKS
Using aws-efs-csi-driver for efs provisioning in EKS
Current Setup
I have created a PV having EFS volume id that bound to pvc in a namespace(N1) wherein pods mounts this volume to read and write data to EFS
Scenario
Now create a another PV resource…

Amit
- 61
- 3
4
votes
2 answers
Kubernetes PVC deleting the contents of the POD
I have a Kubernetes POD running and I have attached a PVC to it.
The PVC volume is /opt/stackstorm.
By default, there are certain files inside the /opt/stackstorm which comes as part of the docker official image. These files are visible when there…

sunil
- 81
- 1
- 5
4
votes
3 answers
Updating a deployment that uses a ReadWriteOnce volume will fail on mount
My deployment is using a couple of volumes, all defined as ReadWriteOnce.
When applying the deployment to a clean cluster, pod is created successfuly.
However, if I update my deployment (i.e update container image), when a new pod is created for my…

Mugen
- 8,301
- 10
- 62
- 140
3
votes
2 answers
Persistent volume claims vs subPath
I would like to use a single mount point on a node (ie /data) and have a different sub folder for each PersistentVolumeClaim that I am going to use in my cluster.
At the moment I have multiple StorageClass and PersistentVolume for each sub folder,…

yellowhat
- 429
- 6
- 17
3
votes
1 answer
Issue in resizing PVC: Only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
I am trying to create pvc which can be resized later on demand.
I am using this code from github for mongodb pvc.
I followed all the steps and pvc is created as below:
PS C:\Users> minikube kubectl -- get pvc
NAME STATUS VOLUME …

SecureTech
- 207
- 5
- 12
3
votes
0 answers
Expanding EBS volume in use as PVC in kubernetes pod
I am working with a couple of k8s pods that have a PVC attached to it as an EBS volume in AWS. I made the mistake of increasing the space of the volume through the EBS console in AWS. I was thinking I could do it through the EBS console and then…

Dave Michaels
- 847
- 1
- 19
- 51
3
votes
2 answers
Can I change Access mode of PVC from RWO(Standard storageclass) to RWX(NFS storageclass) without losing data?
I know we can edit the pvc and change to RWX but there is a cache in this, I'm trying to do in GKE, so for my pvc with RWO the storage class is standard, but if edit to RWX i need to change the storage class also to NFS.
Is it possible to achieve…

Nikhil Lingam
- 121
- 2
- 12
3
votes
2 answers
Can't change Helm zookeeper's storageClass in Sentry charts values.yaml
We want to use Sentry for error logging (on-prem for our use case) but since we use k8s for everything we chose the Sentry Kubernetes charts.
We are using a cloud provider where leaving the storageClass for PVC blank/empty does not create PVCs and…

tech4242
- 2,348
- 2
- 23
- 33
3
votes
3 answers
Unable to attach or mount volumes : timed out waiting for the condition
While mounting my EBS volume to the kubernetes cluster I was getting this error :
Warning FailedMount 64s kubelet Unable to attach or mount volumes: unmounted volumes=[ebs-volume], unattached volumes=[ebs-volume…

XANDER_015
- 93
- 2
- 8
3
votes
1 answer
Kubernetes Multi-Attach error for volume "pvc "Volume is already exclusively attached to one node and can't be attached to another"
Kubernetes version:
V1.22.2
Cloud Provider Vsphere version 6.7
Architecture:
3 Masters
15 Workers
What happened:
One of the pods for some "unknown" reason went down, and when we try to lift him up, it couldn't attach the existing PVC.
This only…

Ruben Gonçalves
- 41
- 1
- 3
3
votes
0 answers
How to share an EFS volume across multiple namespaces
I have read through all the available docs and can't find anything about this problem. If i need to share EFS storage in multiple namespaces, i'm lost as to how to achieve this.
I have tried, creating multiple storage classes and then a…

Happy Machine
- 987
- 8
- 30
3
votes
2 answers
Does the Storage class need to be created in Kubernetes before referring them in PV/PVC?
I have a PV alpha-pv in the kubernetes cluster and have created a PVC matching the PV specs. The PV uses the Storage Class: slow. However, when I check the existence of Storage Class in Cluster there is no Storage Class existing and still my PVC was…

Mayur Kadam
- 145
- 1
- 12
3
votes
1 answer
Setting up PVC in NFS, doesn't mount the set PVC size, instead sets the whole NFS volume size
We are using NFS volume (GCP filestore with 1TB size) to set RWX Many access PVC in GCP, the problem here is:
for example I allot a PVC of 5Gi and mount it to a nginx pod under /etc/nginx/test-pvc, instead of just allotting 5Gi it allots the whole…

Sanjay M. P.
- 919
- 1
- 16
- 33
3
votes
1 answer
Unable to attach or mount volumes for Postgres pod replicas on OpenShift
I have a postgres pod deployed on OpenShift and a PVC that I think that I correctly attached but I could be wrong. This is my PVC and it is correctly Bound -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-pvc
spec:
…

animusdx
- 380
- 3
- 16