Questions tagged [persistent-volume-claims]

284 questions
2
votes
1 answer

kubernetes go-client PersistentVolumeClaim not provisioned on request, stuck in Pending state

While using the go-client API after I use the api.PersistentVolumeClaims(namespace).Create(createOpts) call the PersistentVolumeClaim appears as a resource but stays in the Pending state. I do not see any events when using kubectl describe pvc, I…
2
votes
1 answer

GKE Persistent Volume Resize: File system resize doesn't finish

I would like to expand my persistent volume for a deployment on my GKE cluster running v1.12.5. I changed the storage class to enable volume expansion: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: standard parameters: type:…
2
votes
1 answer

"FindExpandablePluginBySpec err:no volume plugin matched" messages in logs while volumes are working

Kubernetes version: 1.13.4 (same problem on 1.13.2). I self-host the cluster on digitalocean. OS: coreos 2023.4.0 I have 2 volumes on one node: kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: local-storage provisioner:…
2
votes
1 answer

Kubernetes Deployment populates wrong Persistent Volume

I'm trying to create two deployments, one for Wordpress the other for MySQL which refer to two different Persistent Volumes. Sometimes, while deleting and recreating volumes and deployments, the MySQL deployment populates the Wordpress volume…
2
votes
1 answer

Persistent Volume Claim for Azure Disk with specific user permissions

I'm trying to create a dynamic Azure Disk volume to use in a pod that has specific permissions requirements. The container runs under the user id 472, so I need to find a way to mount the volume with rw permissions for (at least) that user. With the…
2
votes
2 answers

Auto delete PVC when scaling down?

I am looking for a way to delete PersistentVolumeClaims assigned to pods of a StatefulSet automatically when I scale down the number of instances. Is there a way to do this within k8s? I haven't found anything in the docs, yet.
alpe1
  • 350
  • 1
  • 9
2
votes
1 answer

Co locate pods and persistent volumes in kubernetes

I have a kubernetes cluster spread across two zones, A and B. I am using nfs volumes for persistent storage. I have nfs volumes in both the zones. I am creating a stateful set of 2 replicas which will be spread across these zones (I used pod…
2
votes
1 answer

Kubernetes: PersistentVolume And PersistentVolumeClaim - Sharing Claims

This question is about the behavior of PersistentVolume and PersistentVolumeClaim configurations within Kubernetes. We have read through the documentation and are left with a few lingering questions. We are using Azure Kubernetes Service to host…
Sage
  • 4,769
  • 1
  • 21
  • 28
2
votes
2 answers

Minikube MySQL files

I am running minikube on my mac using VB. I was able to start a database on minikube using declarative approach. But when I delete the deployment then data is lost. Now my questions are - Where are all these data is saved? How can I change the…
2
votes
1 answer

kubernetes persistent volume ReadWriteOnly(RWO) does not work for nfs

there, According to the doc: ReadWriteOnce – the volume can be mounted as read-write by a single node I created a PV based on nfs: apiVersion: v1 kind: PersistentVolume metadata: name: tspv01 spec: capacity: storage: 15Gi accessModes: …
2
votes
2 answers

Container Data in Persistent Volume Claim when POD crashes

I want to create a replication controller with a POD which will have a PVC (persistent volume claim). My PVC will use an NFS storage for PV(Persistent Volume). Once the POD is operational the RC would maintain the PODs up and running. In this…
Santanu Dey
  • 2,900
  • 3
  • 24
  • 38
1
vote
0 answers

Kubernetes PVC on NFS showing total NFS drive size instead of PVC size

I have a Kubernetes setup where I've defined a PersistentVolumeClaim and a Pod. The PVC is set to request 30GB of storage. The NFS server has a total drive size of 100GB. I"m using the nfs-subdir-external-provisioner helm chart and Azure…
1
vote
1 answer

Kubernetes PVs and PVCs - access from multiple pods

I have a persistent volume created locally in my Kubernetes cluster running in VULTR managed K8S. When I then deploy multiple pods (for example a Webservice where one can upload images - deployed with multiple replicas) that use this persistent…
1
vote
1 answer

pod has unbound immediate PersistentVolumeClaims, I deployed milvus server using

etcd: enabled: true name: etcd replicaCount: 3 pdb: create: false image: repository: "milvusdb/etcd" tag: "3.5.0-r7" pullPolicy: IfNotPresent service: type: ClusterIP port: 2379 peerPort: 2380 auth: rbac: enabled: false persistence: enabled:…
1
vote
0 answers

Kubernetes CSI Driver: Mounting of volumes when pods run on different nodes

I am currently using the Hetzner CSI-Driver (https://github.com/hetznercloud/csi-driver) in Kubernetes, which works fine for the most part. But sometimes I run into the issue that two pods using the same persistentVolumeClaim get scheduled onto…
Juliette
  • 966
  • 16
  • 35