Questions tagged [kubernetes-pvc]

Kubernetes persistent volume claims: These are requested by pods in a cluster, from a storage pool that is pre-defined (or else, dynamically allocated).

351 questions
3
votes
2 answers

Kubernetes Azure disk dynamic Persistent Volume Claim: Mount failed with timeout expired. Pod is in “ContainerCreating” status for ever

Problem statement: Azure disk dynamic Persistent Volume Claim: Mount failed with timeout expired. Pod is in “ContainerCreating” status for ever. kubectl describe pod myPod gives following information: Warning FailedMount 1m (x5 over 12m) …
Arindam
  • 320
  • 2
  • 12
2
votes
1 answer

Periodic VolumeSnapshot in Kubernetes

I wrote a CronJob that periodically takes volume snapshot of my PVC. Below is the CronJob file: kind: CronJob metadata: name: mycronjob spec: schedule: "*/2 * * * *" # Run the job every 2 minutes jobTemplate: spec: template: …
2
votes
1 answer

Kubernetes PVC error - Cannot bind to requested volume : storageClassName does not match

I have a EKS cluster in AWS, which I manage using eksctl and kubectl in EC2. I am trying to create a persistent volume to bind it to multiple pods. I have created an EBS volume (gp2, 5GB) in region us-east-1 for this purpose. My manifests are like…
2
votes
0 answers

EKS: node(s) had volume node affinity conflict

I am trying to deploy a application on EKS cluster version 1.23. When I executed the files, my deployment stuck in pending state. I describe the pod and find below error. Events: Type Reason Age From …
Ankit Soni
  • 95
  • 2
  • 13
2
votes
1 answer

Persistent volume claim attach to kubernetes deployment to access files present in PVC but should not write any logs to PVC?

I have a requirement to store files in a PVC and attach that PVC to a Nginx ingress controller deployment so that application can access the files which are present in PVC but at the same application should not write back logs and configurations to…
2
votes
0 answers

Can't rebind ReadWriteOnce PVC after pod crashes

I am using the Bitnami RabbitMQ chart to deploy RabbitMQ to my kubernetes cluster and namespace. This chart uses a StatefulSet, defaulting to a size of 1, where each pod runs a RabbitMQ container and has a PersistentVolumeClaim for data storage.…
Joaquim d'Souza
  • 1,416
  • 2
  • 14
  • 25
2
votes
0 answers

Migrating StorageClass from gp2 to gp3 - AWS EKS

We are using EKS and we have a stateful set that uses a storage class as volumeclaimtemplates. Our storage classes are of type gp2 and is using the ebs.csi.aws provisioner. We need to convert the sc's from gp2 - gp3 without any downtime. Is it…
2
votes
0 answers

Airflow helm chart 1.7 - Mounting DAGs from an externally populated PVC and non-default DAG path

I want to use Airflow in Kubernetes on my local machine. From the Airflow helm chart doc I should use a PVC to use my local DAG files, so I setup my PV and PVC like so: apiVersion: v1 kind: PersistentVolume metadata: name: dags-pv spec: …
Flo
  • 377
  • 2
  • 15
2
votes
1 answer

Unable to attach or mount volumes : MountVolume.SetUp failed rpc error: code = DeadlineExceeded desc = context deadline exceeded

I've followed the steps & replicated the same from the official doc of AWS EKS to mount a volume with EFS. But, facing the below error. Unable to attach or mount volumes: unmounted volumes=[persistent-storage], unattached volumes=[persistent-storage…
Naveen
  • 103
  • 1
  • 12
2
votes
1 answer

How to monitor disk usage of persistent volumes of all storageclasses using Prometheus?

I am using Kubernetes Persistent Volumes dashboard on Grafana to view the disk usage for my PVCs. This dashboard makes use of kubelet_volume_stats_used_bytes metric to fetch the data for the PVCs and I am able to visualize it as well. But, it does…
2
votes
1 answer

Argo workflow pvcs not deleted after workflow completion

I have the following volume claim configuration in the workflow template, but still volume claim is not happening after job completion even if one of the phases fails. volumeClaimGC: strategy: OnWorkflowCompletion volumeClaimTemplates: #…
Sri Vidhya
  • 55
  • 4
2
votes
2 answers

Problem : Delete PVC (Persistent Volume Claim) Kubernetes Status Terminating

Basically, I have a problem deleting my spoc-volume-spoc-ihm-kube-test PVC I tried with: kubectl delete -f file.yml kubectl delete PVC but I get every time the same Terminating Status. Also, when I delete the PVC the console is stuck in the…
Fuzzby
  • 83
  • 1
  • 7
2
votes
1 answer

Kubernetes pods are stuck after scale up AWS. Multi-Attach error for volume

I experiencing some issues when scale down/up ec2 of my k8s cluster. It might happen that sometimes I have new nodes, and old are terminated. k8s version is 1.22 Sometimes some pods are in ContainerCreating state. I am trying to describe pod and see…
2
votes
1 answer

Kubernetes way or Operator to clone PV between namespaces

Please tell me the best way to clone PV between namespaces. I read that cloning is only possible in a single namespace. So far the best way I see is to explicitly copy the files from one folder to another after creating the PVC. But I would like to…
JDev
  • 2,157
  • 3
  • 31
  • 57
2
votes
1 answer

What is default value for allowVolumeExpansion on the default storage class in kubernetes?

What is the default value for the allowVolumeExpansion? I create my volumes through a statefulset from apiVersion: apps/v1 volumeClaimTemplates In the case that the answer is false, how can I change it to true? Potentially relevant info: the cluster…
Alex Skotner
  • 462
  • 1
  • 8
  • 18