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
1 answer

return persistent volume (pv) capacity in integer instead of Gi, Mi, Ki, G, M, K etc

I would like to calculate the total number of bytes allocated by the persistent volumes (PVs) in a cluster. Using the following: $ kubectl get pv -A -o json I can get a JSON list of all the cluster's PVs and for each PV in the items[] list one can…
fantoman
  • 147
  • 2
  • 9
3
votes
1 answer

Deployment cannot find PVC on minikube

I am practicing making PV and PVC with Minikube. But I encountered an error that my InfluxDB deployment couldn't find influxdb-pvc and I can't solve it. I check the message at the top of the event, I can see that my PVC cannot be found. Therefore, I…
3
votes
3 answers

Kubernetes ignoring PVC RWO ACCESS MODE and deploying pods on different nodes

I have a Kubernetes v1.17.0 cluster with multiple nodes. I've created PVC with access mode set to RWO. From the Kubernetes docs: ReadWriteOnce -- the volume can be mounted as read-write by a single node I'm using a Cinder volume plugin which…
Lukas
  • 1,246
  • 8
  • 15
3
votes
1 answer

ReadWriteMany volumes on kubernetes with terabytes of data

We want to deploy a k8s cluster which will run ~100 IO-heavy pods at the same time. They should all be able to access the same volume. What we tried so far: CephFS was very complicated to set up. Hard to troubleshoot. In the end, it crashed a lot…
3
votes
2 answers

ActiveMQ on Kuberenetes with Shared storage

I have existing applications built with Apache Camel and ActiveMQ. As part of migration to Kubernetes, what we are doing is moving the same services developed with Apache Camel to Kubernetes. I need to deploy ActiveMQ such that I do not lose the…
Debdeep Das
  • 129
  • 1
  • 9
3
votes
2 answers

Is there a way to share existing data between containers in a pod?

I have 2 containers in a pod. 1. Webapp 2. Nginx I would like to share the data from Webapp container /var/www/webapp/ with the nginx container. /var/www/html /var/www/webapp ( folder structure ) │ index.php │ │ └───folder1 │ │ …
Khaliq
  • 33
  • 1
  • 4
3
votes
2 answers

Redis seems to delete dump.rdb on startup. Using Kubernetes PVC's and KubeDB. Why is this happening?

We are using KubeDB in our cluster to manage our DB's. So Redis is deployed via a KubeDB Redis object and KubeDB attaches a PVC to the Redis pod. Unfortunately KubeDB doesn't support any restoring or backing up of Redis dumps (yet). For the backup…
Moritz Schmitz v. Hülst
  • 3,229
  • 4
  • 36
  • 63
3
votes
1 answer

How can I use an existing PVC to helm install stable/jenkins

I am stuck with a helm install of jenkins :( please help! I have predefined a storage class via: $ kubectl apply -f generic-storage-class.yaml with generic-storage-class.yaml: kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name:…
gh4x
  • 818
  • 1
  • 10
  • 16
3
votes
2 answers

Kubernetes AWS shared persistent volume

I have the following: 2 pod replicas, load balanced. Each replica having 2 containers sharing network. What I am looking for is a shared volume... I am looking for a solution where the 2 pods and each of the containers in the pods can share a…
3
votes
3 answers

Retain Persistence Volume and use the PV for new Helm install

In my Mongo Helm Chart, I am using PVC for Persistence volume. I am using the chart to install Mongo. When I delete the chart my PV gets deleted. So, I found something to patch it in. kubectl patch pv -p…
3
votes
1 answer

kubernetes persistence volume and persistence volume claim exceeded storage

By following kubernetes guide i have created a pv, pvc and pod. i have claimed only 10Mi of out of 20Mi pv. I have copied 23Mi that is more than my pv. But my pod is still running. Can any one explain ? pv-volume.yaml kind:…
Manoj Gudipati
  • 101
  • 1
  • 4
3
votes
2 answers

Kubernetes multiple pvc with statefulset for each pod vs single pvc for all pods?

I have deploy kubernetes cluster with stateful pod for mysql. for each pod i have different pvc. for example : if 3 pod thn 3 5GB EBS PVC SO Which way is better using one PVC for all pods or use different pvc for each pod.
Harsh Manvar
  • 27,020
  • 6
  • 48
  • 102
3
votes
0 answers

Is it possible to take S3 snapshots of OpenEBS Jiva live volumes? If so, how?

How can I take S3 snapshot of OpenEBS jiva volume which is being accessed regularly? Is there any pause on volume while taking the snapshot? Do you have a way to do this one?
3
votes
1 answer

Connecting to persistent volume in Kubernetes?

I'm in the process of converting a stack to k8s. The database requires persistent storage. I have used kubectl create -f pv.yaml pv.yaml (with edits based on @whites11's answer): kind: PersistentVolume apiVersion: v1 metadata: name: pv-volume …
Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
3
votes
1 answer

Kubernetes StorageClass not found

I am facing issues with Dynamic Storage provisioner. I have created storage class (edited) kubectl get sc NAME PROVISIONER AGE slow kubernetes.io/aws-ebs 12m standard (default) kubernetes.io/aws-ebs …