Questions tagged [persistent-volume-claims]
284 questions
5
votes
2 answers
Kubernetes: NFS with StatefulSets
I'm trying to use existing NFS with StateFulSets.
Creation of PresistentVolumeClaim seems automatic using the volumeClaimTemplates.
Problem:
But, since the PresistentVolumeClaim claims a entire PresistentVolume. I have to create PresistentVolume…

Shan
- 2,141
- 2
- 17
- 32
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
4
votes
3 answers
delete Kubernetes persistent volume from statefulset after scale down
I scaled my statefulset up to 4, and when scaling down to 1, I saw that I still have 4 persistent volumes with indexes from 0 to 3.
I also saw that the status of all of them is Bound
I guess it is because I use it as stateful set, so it doesn't…

toto
- 1,197
- 2
- 15
- 26
4
votes
1 answer
How to recover pv(Released) data after pvc deletion
I have a kubernetes cluster on the eks of aws. I use aws-ebs as the Provisioner of StorageClass, and the ReclaimPolicy is set to Retain. I install the application with helm. When I delete the application, the pvc is deleted, but the pv still exists.…

gophergfer
- 261
- 4
- 9
4
votes
3 answers
Kubernetes - Mounting Persistent Volume as root directory
I'm trying to create a new Kubernetes deployment that will allow me to persist a pod's state when it is restarted or shutdown. Just for some background, the Kubernetes instance is a managed Amazon EKS Cluster, and I am trying to incorporate an…

ChrisDevWard
- 885
- 2
- 9
- 20
4
votes
2 answers
HostPath assign persistentVolume to the specific work node in cluster
Using kubeadm to create a cluster, I have a master and work node.
Now I want to share a persistentVolume in the work node, which will be bound with Postgres pod.
Expecting the code will create persistentVolume in the path /postgres of work node,…

ccd
- 5,788
- 10
- 46
- 96
4
votes
1 answer
Creating a PersistentVolume on Okteto Cloud
When I try to create a persistentVolume on Okteto Cloud with the following definition:
kind: PersistentVolume
apiVersion: v1
metadata:
name: postgres-pv
labels:
type: local
app: postgres
spec:
storageClassName: manual
capacity:
…

Nicolas Marshall
- 4,186
- 9
- 36
- 54
4
votes
3 answers
Kubernetes Delete Persistent Voulmes Created by hostPath
I created a PV and a PVC on docker-desktop and even after removing the pv and pvc the file still remains. When I re-create it, it attaches the same mysql database to new pods. How do you manually delete the files created by the hostPath? I suppose…

joshduffney
- 389
- 1
- 4
- 16
4
votes
2 answers
Is it possible to have PVC's with the same name accross different namespace when using different PV's in Kubernetes?
I have 2 different namespace: prod-01 and prod-02, What I want to do is build a copy of my prod-01 into prod-02 namespace keeping the same names for its pvcs, so that I don't have to maintain 2 sets of charts for each different namespace.
Here's…

silveiralexf
- 514
- 1
- 7
- 23
4
votes
2 answers
Kubernetes AKS Persistent Volume Disk Claims To Multiple Nodes
How can I attach 100GB Persistent Volume Disk to Each Node in the AKS Kubernetes Cluster?
We are using Kubernetes on Azure using AKS.
We have a scenario where we need to attach Persistent Volumes to each Node in our AKS Cluster. We run 1 Docker…

Chris Langston
- 211
- 4
- 7
4
votes
2 answers
Can I use existing GCE persistent disk in volumeClaimTemplate of Kubernetes Statefulset
I am using Google Container Engine to run a StatefulSet for MongoDB replica set (3 replica pods).
This works fine with dynamic provisioning of persistent storage - that is new storage is provisioned for each pod when the stateful set is created. …

conundrum
- 95
- 2
- 8
4
votes
1 answer
How to create an kubernetes NFS volume on Google Container Engine
I am trying to create a kubernetes NFS volume on Google Container Engine (GKE) and get it used by a deployment.
I did this in several steps as it shown in this github repository kubernetes-nfs-volume-on-gke:
Create a GKE cluster and GCE persistent…

Amine Jallouli
- 3,919
- 8
- 36
- 73
3
votes
1 answer
Error con Pods in Azure k8s (Volume capability not supported)
I created disk in azure k8s cluster (4Gb standard HDD)
I am using code PV
Pv file
Then I am creating PVC:
PVC yaml
Attach my volume to Pod:
Pod volume attache
But when I checked the status of my Pod, I got an error:
root@k8s:/home/azureuser/k8s#…

Oleg
- 161
- 1
- 2
- 10
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
1 answer
Kubernetes StorageClassName: quantities must match the regular expression
I have the following pv.yaml Kubernetes/Kustomization file:
apiVersion: v1
kind: PersistentVolume
metadata:
name: myapp-common-pv
namespace: myapp
labels:
app.kubernetes.io/name: myapp-common-pv
app.kubernetes.io/component: common-pv
…

simplezarg
- 168
- 1
- 9