Questions tagged [persistent-volume-claims]
284 questions
0
votes
0 answers
Cloud provider not initialized properly
I created storageclass and persistentvolumeclaim in the vSphere infrastructure. However, I am getting an error when I checked persistentvolumeclaim using kubectl describe pvc pvc-name command:
[root@kube-master-01 ~]# kubectl describe pvc…

thenextgeneration
- 65
- 12
0
votes
1 answer
Provision PVCs with correct zone information in AKS
I am doing a cluster backup and restore from GCP to Azure using Velero
The persistent volumes in k8s have NodeAffinity which has the zone and region selectors that don't match with the lables on the Azure node, because of the difference in…

kosta
- 4,302
- 10
- 50
- 104
0
votes
1 answer
Azure Kubernetes Failover with PersistentVolumes
I am currently testing how Azure Kubernetes handles failover for StatefulSets. I simulated a network partition by running sudo iptables -A INPUT -j DROP on one of my nodes, not perfect but good enough to test some things.
1). How can I reuse disks…

Andrei Lazakovitch
- 73
- 5
0
votes
1 answer
Using EFS csi driver, do I create multiple PV for each path with the same volumeHandle and how do I specify which PV for the PVC?
See below I have directories in EFS - data and logs. Do I need to create a different PV if I need to use a subpath? And if I do, how do I specify the PV to use for the PVC?
---
apiVersion: v1
kind: PersistentVolume
metadata:
name:…

alltej
- 6,787
- 10
- 46
- 87
0
votes
2 answers
Kubernetes Mongo with persistent volume FailedScheduling 0/1 nodes are available: 1 node(s) didn't match node selector
I tried to follow this link about Kubernetes MongoDB with persistent volume (exactly same).
but aftrer I deploy everything and take a look on the pod, I got these errors:
Name: mongodb-standalone-0
Namespace: default
Priority: …

Darryl RN
- 7,432
- 4
- 26
- 46
0
votes
2 answers
kubernetes persistent volume for nginx not showing the default index.html file
I am testing out something with the PV and wanted to get some clarification. We have an 18 node cluster(using Docker EE) and we have mounted NFS share on each of this node to be used for the k8s persistent storage. I created a PV (using hostPath) to…

Parth Gandhi
- 311
- 8
- 16
0
votes
1 answer
delete improperly removed PersistentVolume in kubernetes
It seems like, While deleting the pv,pvc, I have messed up. I can delete the pvc without issues but I can not delete the pv that pv-protection in it. while deleting pv,pvc earlier, I have pressed CTRL+C since it was taking time to delete it and also…

intechops6
- 1,007
- 4
- 22
- 43
0
votes
1 answer
MySQL with Persistent Volume Claim on Kubernetes
I created a volume and a persistent volume claim. Then I create a MySQL with a map to this volume claim. But the MySQL container does not start because: "2019-11-15T15:08:57.611908Z 0 [ERROR] --initialize specified but the data directory has files…

Christian68
- 845
- 4
- 13
- 24
0
votes
1 answer
Google Cloud Kubernetes Persistent Volume Claim error in deployment Yaml
I have a persistent volume claim file, which previously was being read by buildkite in the deployment stage. Only recently it has been erroring in the build process with this error:
error: error validating "kube/common/01-redis-volume-claim.yml":…

ugotchi
- 1,003
- 1
- 12
- 32
0
votes
1 answer
Auto bound PVC to PV
Good day!
If you do not explicitly specify volumeName when creating PVC in Openshift, then to which PV will the PVC be bounded?
I think that PVC can be tied to any PV in the "Available" status if Storage size matches claim.
apiVersion: v1
kind:…

mapu
- 11
0
votes
1 answer
Mount a volume on cronjob in Openshift
I have Jenkins POD that mounts a pv with a pvc.
Now I want to create a cronjob that use the same pvc in order to do some log rotation on jenkins build.
How can I access to Jenkins PVC from cronjob in order to do some batch procedures on PV?

adev
- 367
- 1
- 3
- 20
0
votes
1 answer
Accidentally deleted the glusterfs-dynamic Service for my PVC; how do I recreate it?
Attempting to recreate all my assets from a fresh openshift (except for my PVC), I deleted everything ($ oc delete all --all; oc delete configmap --all; oc delete secret -l namespace=visor). I did this so I could be certain my 'oc process -f…

Weston Greene
- 43
- 2
- 8
0
votes
0 answers
FailedAttachVolume error on Kubernetes with StorageOS
I am trying to setup a high availability cluster with storageOS.Literally i want to replicate volumes between nodes and if a node down my statefull application should start on new node with last state.
I have 1 Master and 2 Slave nodes on bare…

Adi Soyadi
- 23
- 6
0
votes
1 answer
Force PersistentVolumeClaim and Deployment to land in same availability zone
I have a kubernetes cluster in AWS with ec2 worker nodes in the following AZs along with corresponding PersistentVolumes in each AZ.
us-west-2a
us-west-2b
us-west-2c
us-west-2d
My problem is I want to create a Deployment with a volume mount that…

Michael
- 546
- 1
- 7
- 19
0
votes
1 answer
Deployed port is not getting exposed in kubernetes in nexus
I am working on creating a nexus repo through kubernetes. By browesing i came across this site (https://blog.sonatype.com/kubernetes-recipe-sonatype-nexus-3-as-a-private-docker-registry) I was able to create a service and deployment and pod and…

Kishan Jr
- 39
- 8