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

What is the relationship between Persistent Volumes and Persistent Volume Claims (1:1 or 1:n)

I'm currently writing the manifests for a few services in my home server that require persistent storage. I want to use PVs and PVCs. Do I create one single big PV and share that among all services? Or is it a 1:1 relation between PVCs and PVs? I'm…
3
votes
1 answer

What is the difference between volume and pvolume in kubeflow pipeline definition?

I am studying kubeflow pipelines and how are the different components of the pipeline linked to each other. For this, I am using an example of MNIST project available on the official GitHub repository. But I am not able to understand the difference…
3
votes
2 answers

Docker persistent volume on GCP

I'm deploying services to GCP and I want to persist the database and logs. The VM's local storage is not considered. How can I mount the GCP disk/bucket to the containers? Here is my docker-compose.yml: version: '3' services: backend: image:…
Scottie
  • 1,021
  • 2
  • 14
  • 22
3
votes
2 answers

Mounting kubernetes volume with User permission

I am using Kubernetes yaml to mount a volume. I know I can set the mount folder to be for a specific group using this configuration: securityContext: fsGroup: 999 but no where I can find a way to also set user ownership and not just the…
toto
  • 1,197
  • 2
  • 15
  • 26
3
votes
2 answers

Do I have to recreate already bound PersistentVolumes after reconfiguring StorageClass

I have created several PersistenVolumes through PersistentColumeClaims on the "azure-file" StorageClass in AKS. Now the mount options of the StorageClass as it is delivered by Azure didn't fit our needs, and I had to update/reconfigure it with…
Jürgen Zornig
  • 1,174
  • 20
  • 48
3
votes
2 answers

Kubernetes - For Scale, pod is pending when attached the persistent volumes while scaling the pod (GKE)

I have created a deployment in the xyz-namespace namespace, it has PVC. I can create the deployment and able to access it. It is working properly but while scale the deployment from the Kubernetes console then the pod is pending state…
Hushen
  • 427
  • 1
  • 4
  • 15
3
votes
1 answer

node(s) had volume node affinity conflict

I have a pod that uses 2 persistent volumes. The persistent volumes are in different zones. While deploying I get the following error: node(s) had volume node affinity conflict Any solution to the above problem?
3
votes
1 answer

DataDog metric for Kubernetes PersistentVolume usage or remaining space

Is there a DataDog metric to report the space used or remaining in a GCP PersistentVolume. I have found disk use metrics for the container itself, but not for a PersistentVolume. I am working in GoogleCloudPlatform.
3
votes
2 answers

Are Pods forced to run on nodes where their persistent volumes exist?

I'm teaching myself Kubernetes with a 5 Rpi cluster, and I'm a bit confused by the way Kubernetes treats Persistent Volumes with respect to Pod Scheduling. I have 4 worker nodes using ext4 formatted 64GB micro SD cards. It's not going to give GCP or…
3
votes
1 answer

Kubernetes: problem mounting local folder to pods - "0/1 nodes are available: 1 node(s) had volume node affinity conflict."

I try to mount a local folder as PersistentVolume and use it in one of the pods, but seems there is problem with the process and the pod stays on the status "pending". The following is my pv yaml file: kind: PersistentVolume apiVersion:…
3
votes
2 answers

How do I run "ls" and then print the output to the console?

I am testing a connection between a persistent volume and a kubernetes pod by running busybox, but am getting "can't open" "no such file or directory. In order to do further testing, I tried running echo ls /mntpoint/filename This is obviously not…
user3877654
  • 1,045
  • 1
  • 16
  • 40
3
votes
2 answers

Kubernetes volumes: when is Statefulset necessary?

I'm approaching k8s volumes and best practices and I've noticed that when reading documentation it seems that you always need to use StatefulSet resource if you want to implement persistency in your cluster: "StatefulSet is the workload API object…
3
votes
1 answer

How to mount volume inside pod using "kubectl" CLI

I want to create a pod using kubectl CLI which will mount hostpath /etc/os-release inside pod container and display content of /etc/os-release file. Is is possible to do it in using one-liner kubectl command?
3
votes
1 answer

Persistent Volume for Jenkins on Kubernetes

I'm trying to deploy a Jenkins image on a local Kubernetes cluster. The deployment is succesfull but I can't get the persistence data working. No errors are being thrown and new pods start up succesfully, the only problem is that it's not…
3
votes
5 answers

Local PersistentVolumeClaim says "no volume plugin matched"

I recently started exploring Kubernetes and decided to try and deploy kafka to k8s. However I have a problem with creating the persistent volume. I create a storage class and a persistent volume, but the persistent volume claims stay in status…