Questions tagged [persistent-volumes]

This tag is for Kubernetes persistent volume related questions.

Kubernetes Persistent Volumes is a subsystem for managing storage. The PV subsystem is responsible for how the storage is provided whereas the PersistentVolumeClaim is the abstraction that is related to how the storage is consumed by the application.

771 questions
5
votes
1 answer

Multiple pods using same database on kubernetes

I would like to know if it is possible for multiple pods in the same Kubernetes cluster to access a database which is configured using persistent volumes on a Google cloud persistent disk. Currently I am building a microservices achitecture web app…
5
votes
1 answer

Kubernetes / Rancher 2, mongo-replicaset with Local Storage Volume deployment

I try, I try, but Rancher 2.1 fails to deploy the "mongo-replicaset" Catalog App, with Local Persistent Volumes configured. How to correctly deploy a mongo-replicaset with Local Storage Volume? Any debugging techniques appreciated since I am new to…
Slim
  • 1,256
  • 1
  • 13
  • 25
5
votes
1 answer

Kubectl create for persistent storage erroring out

I'm trying to deploy a persistent storage for couch DB and it is failing out with the error kubectl create -f couch_persistant_deploy.yaml error: error validating "couch_persistant_deploy.yaml": error validating data: couldn't find type:…
anish anil
  • 2,299
  • 7
  • 21
  • 41
5
votes
1 answer

Postgresql via Helm not installing

I am attempting to install postgres via helm using the latest stable and it isn't installing the persistent volume properly. I am installing it in Minikube and for some reason it doesn't appear to be able to hostMount properly. Error (on the…
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…
5
votes
1 answer

Kubernetes persistent volumes with azureFile

I'm trying to create a persistent volume using the azureFile however I keep getting the following error. MountVolume.SetUp failed for volume "kubernetes.io/azure-file/2882f900-d7de-11e6-affc-000d3a26076e-pv0001" (spec.Name: "pv0001") pod…
4
votes
2 answers

Kubernetes storageClass for Postgresql database

What is the preferred Kubernetes storageClass for a PersistentVolume used by a Postgresql database? Which factors should go into consideration choosing the storageClass when I have the choice between S3 (Minio), NFS and HostPath?
mxcd
  • 1,954
  • 2
  • 25
  • 38
4
votes
0 answers

Mounting a hostPath persistent volume to an Argo Workflow task template

I am working on a small proof-of-concept project for my company and would like to use Argo Workflows to automate some data engineering tasks. It's really easy to get set up and I've been able to create a number of workflows that process data that is…
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…
4
votes
2 answers

How to define local pesistence volumes in a Kubernetes StatefullSet?

In my Kubernetes cluster I want to define a StatefulSet using a local persistence volume on each node. My Kubernetes cluster has worker nodes. worker-node-1 worker-node-2 worker-node-3 My StatefulSet looks something like this: apiVersion:…
Ralph
  • 4,500
  • 9
  • 48
  • 87
4
votes
1 answer

Mounting NFS Persistent Volumes with authentication

I'm trying to mount a Persistent Volume on a self hosted Kubernetes cluster using NFS (SMB to be precise). I created a share with a user and password on another machine (my samba host), I have tested that the share is accessible from the network. So…
Pasantru
  • 41
  • 1
  • 4
4
votes
0 answers

StatefulSet and Local Persistent Volume when the kube node is gone

This question is about StatefulSet and Local Persistent Volume. If we deploy a StatefulSet with the pods using local persistent volumes, when the Kube node hosting a persistent volume is gone, the corresponding pod become un-schedulable. My question…
Wei
  • 51
  • 2
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.…
4
votes
0 answers

How to configure a RabbitMQ cluster in Kubernetes with a mounted persistent volume that will allow data to persist when the entire cluster restarts?

I am trying to setup a high-availability RabbitMQ cluster of nodes in my Kubernetes cluster as a StatefulSet so that my data (e.g. queues, messages) persist even after restarting all of the nodes simultaneously. Since I'm deploying the RabbitMQ…
Vivek Parmar
  • 41
  • 1
  • 3