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
7
votes
1 answer
PVC in pending state
I am trying to provision PV with RBD using https://github.com/kubernetes/kubernetes/tree/release-1.7/examples/persistent-volume-provisioning/rbd
But I have faced an issue when my PVC is in Pending state without any meaningful log
root@ubuntu:~#…

user2079197
- 169
- 1
- 1
- 11
6
votes
2 answers
Monitoring PVC Usage with Prometheus
I am using Prometheus 2.33 version.
The following query does not work.
kubelet_volume_stats_available_bytes
kubelet_volume_stats_capacity_bytes
The following query is used to monitor the DISK usage of the…

김태우
- 1,033
- 1
- 12
- 29
6
votes
1 answer
Jenkins on Kubernetes - working directory not accessible using workspaceVolume dynamicPVC
I'm running Jenkins on EKS cluster with k8s plugin and i'd like to write a declarative pipeline in which I specify the pod template in each stage. So a basic example would be the following, in which in the first stage a file is created and in the…

ollaw
- 2,086
- 1
- 20
- 33
6
votes
1 answer
How to mount data file in kubernetes via pvc?
I want to persistent data file via pvc with glusterfs in kubernetes, I mount the diretory and it'll work, but when I try to mount the file, it'll fail, because the file was mounted to the directory type, how can I mount the data file in k8s ?
image…

zulv
- 537
- 1
- 6
- 17
6
votes
2 answers
Kubernetes Persistent Volume Claim mounted with wrong gid
I'm creating a Kubernetes PVC and a Deploy that uses it.
In the yaml it is specified that uid and gid must be 1000.
But when deployed the volume is mounted with different IDs so I have no write access on it.
How can I specify effectively uid and gid…

JuanMatias
- 87
- 1
- 1
- 10
6
votes
1 answer
Auto delete persistant volume claim when a kubernetes job gets completed
Is there any policy or a way that enable us to auto delete a persistent volume claim when a kubernetes-job (using that claim) gets completed.
FYI:
i am creating persistent volume claim using delete policy i.e. on claim deletion the associated…

UmairAhmad
- 150
- 3
- 14
5
votes
1 answer
Mounting Windows local folder into pod
I'm running a Ubuntu container with SQL Server in my local Kubernetes environment with Docker Desktop on a Windows laptop.
Now I'm trying to mount a local folder (C:\data\sql) that contains database files into the pod.
For this, I configured a…

ngruson
- 1,176
- 1
- 13
- 25
5
votes
1 answer
How to perform helm update on deployment with pvc and initContainer?
I am fairly new to helm and kubernetes so I'm not sure if this is a bug or I'm doing something wrong. I have looked everywhere for answer however before posting and can't find anything that answers my question.
I have a deployment which uses a…

Tom Greenwood
- 1,502
- 14
- 17
5
votes
3 answers
Move Kubernetes statefulset pod to another node
My k8s cluster initially have 2node and 1master and I deployed statefulset with 3pods, so 3pods with PVC are running on 2 nodes. Now I increased nodes from 2 to 3. So now k8s is 3nodes and 1master. I would like to move one of the statefulset pod to…

Ram
- 157
- 1
- 3
- 8
5
votes
2 answers
How to mount a configMap as a volume mount in a Stateful Set
I don't see an option to mount a configMap as volume in the statefulset , as per https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#statefulset-v1-apps only PVC can be associated with "StatefulSet" . But PVC does not have option…

SKS
- 105
- 1
- 8
5
votes
1 answer
How to avoid override the container directory when using pvc in kubernetes?
When using pvc to persist the container data, it seems pvc always override the container's directory, the original data in directory will not be available, what's the reason ?

zulv
- 537
- 1
- 6
- 17
5
votes
1 answer
Creating Persistent Volume Results in storageclass.storage.k8s.io "fast" not found
I installed kubernetes on two Centos7 VMs using kubeadm.
I am trying to follow the Example: Deploying Cassandra with Stateful Sets or Scalable-Cassandra-deployment-on-kubernetes samples.
Creating the local volumes works but kubectl get pvc always…

Flea
- 1,490
- 2
- 19
- 43
5
votes
1 answer
Kubectl create for persistent storage erroring out
I'm trying to deploy a persistent storage for couch DB and it is failing out with the error
kubectl create -f couch_persistant_deploy.yaml
error: error validating "couch_persistant_deploy.yaml": error validating data: couldn't find type:…

anish anil
- 2,299
- 7
- 21
- 41
4
votes
1 answer
K8S Cronjob PVC cleanup
I have a situation where i'm trying to create a Kubernetes CronJob which does some data processing. While the processing is being performed, I need to use external storage to temporarily store the data (as it's too big for nodes themselves), so i…

hpdobrica
- 134
- 7
4
votes
1 answer
Create PersistentVolumeClaim imperative way?
Why can't we create PV or PVC in imperative way?
Trying using create command, but it doesn't show any of them.
kubectl create --help
Available Commands:
clusterrole Create a ClusterRole.
clusterrolebinding Create a ClusterRoleBinding…

Nurhun
- 475
- 1
- 9
- 21