Questions tagged [persistent-volume-claims]
284 questions
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
2 answers
In which real world scenario would you use ReadWriteOnce over ReadWriteMany for a PVC in Kubernetes?
Just as a quick reminder, said option limits how many nodes can read / write to a volume, not how many pods can access it. You can have a RWO volume accesed by multiple pods as long as they are running in the same worker node.
Having said that, when…

Jsh0s
- 519
- 1
- 8
- 18
3
votes
2 answers
Reattach a Dynamically Provisioned PV to a PVC
I deployed a PVC, which dynamically created a PV.
After that I deleted the PVC and now my PV looks like below:
PS Kubernetes> kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM …

Sujeet Padhi
- 254
- 1
- 20
3
votes
1 answer
What is the relationship between Persistent Volumes and Persistent Volume Claims (1:1 or 1:n)
I'm currently writing the manifests for a few services in my home server that require persistent storage. I want to use PVs and PVCs. Do I create one single big PV and share that among all services? Or is it a 1:1 relation between PVCs and PVs?
I'm…

trallnag
- 2,041
- 1
- 17
- 33
3
votes
2 answers
Mounting kubernetes volume with User permission
I am using Kubernetes yaml to mount a volume.
I know I can set the mount folder to be for a specific group using this configuration:
securityContext:
fsGroup: 999
but no where I can find a way to also set user ownership and not just the…

toto
- 1,197
- 2
- 15
- 26
3
votes
1 answer
What does it mean for a PersistentVolumeClaim to have multiple accessModes?
I understand what the accessModes individually do, but I was surprised to see that the configuration section for accessModes is an array, rather than a simple key-value. The documentation is far from clear, and as far as I can tell doesn't even…

TREE
- 1,292
- 2
- 12
- 21
3
votes
2 answers
Are Pods forced to run on nodes where their persistent volumes exist?
I'm teaching myself Kubernetes with a 5 Rpi cluster, and I'm a bit confused by the way Kubernetes treats Persistent Volumes with respect to Pod Scheduling.
I have 4 worker nodes using ext4 formatted 64GB micro SD cards. It's not going to give GCP or…

Nick Saccente
- 150
- 1
- 9
3
votes
1 answer
Kubernetes: problem mounting local folder to pods - "0/1 nodes are available: 1 node(s) had volume node affinity conflict."
I try to mount a local folder as PersistentVolume and use it in one of the pods, but seems there is problem with the process and the pod stays on the status "pending".
The following is my pv yaml file:
kind: PersistentVolume
apiVersion:…

Ken Tsoi
- 1,195
- 1
- 17
- 37
3
votes
2 answers
Kubernetes volumes: when is Statefulset necessary?
I'm approaching k8s volumes and best practices and I've noticed that when reading documentation it seems that you always need to use StatefulSet resource if you want to implement persistency in your cluster:
"StatefulSet is the workload API object…

Alessandro Argentieri
- 2,901
- 3
- 32
- 62
3
votes
1 answer
Persistent Volume for Jenkins on Kubernetes
I'm trying to deploy a Jenkins image on a local Kubernetes cluster. The deployment is succesfull but I can't get the persistence data working. No errors are being thrown and new pods start up succesfully, the only problem is that it's not…

Mike Manders
- 115
- 2
- 13
3
votes
5 answers
Local PersistentVolumeClaim says "no volume plugin matched"
I recently started exploring Kubernetes and decided to try and deploy kafka to k8s. However I have a problem with creating the persistent volume. I create a storage class and a persistent volume, but the persistent volume claims stay in status…

Konstantin Konstantinov
- 127
- 1
- 1
- 7
3
votes
1 answer
Django migrations by Kubernetes Job and persistent Volume Claim
Is the best approach to make migrations and migrate models using a Job and a Persistent Volume Claim on Kubernetes Django deployed app?
Persistent Volume
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: csi-pvc
spec:
accessModes:
-…

cuscode
- 77
- 1
- 10
3
votes
1 answer
pod has unbound immediate PersistentVolumeClaims kubernetes nfs volume
I know there are lots of discussions round this topic but somehow, I can not get it working.
I am trying to install elastic search cluster with statefulset and nfs persistent volume on bare metal. My pv, pvc and sc configs are as below:
kind:…

NumeroUno
- 1,100
- 2
- 14
- 34
3
votes
2 answers
Re-use PersistentVolume after re-installing a helm deployment
When I helm delete a deployment its PVs and PVCs are deleted as well. How can I avoid the actual data in the PVs from being deleted and be able to reclaim those PVs when I helm install again?
I am using helm upgrade…

Hedge
- 16,142
- 42
- 141
- 246
3
votes
1 answer
Kubernetes, how to link a PersistentVolume to a volumeClaim
I'm newbie in the Kubernetes world and I try to figure it out how a volumeClaim or volumeClaimTemplates defined in a StatefulSet can be linked to a specific PersistentVolume.
I've followed some tutorials to understand and set a local…

Waldo
- 1,070
- 1
- 11
- 30