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

Problems mounting Persistent Volume as ReadOnlyMany across multiple pods

I'm having some trouble getting a ReadOnlyMany persistent volume to mount across multiple pods on GKE. Right now it's only mounting on one pod and failing to mount on any others (due to the volume being in use on the first pod), causing the…
8
votes
3 answers

Is it possible to have the same PVC as two volumes in Kubernetes?

My pod declares two different volumes. I use some definition templating, and depending on the environment in some cases I would like to reuse the same claim for the two volumes. This results in an error: Unable to mount volumes for pod…
8
votes
1 answer

Pod has unbound PersistentVolumeClaims but volume claims is bounded

I want to create a statefulset elasticsearch in kubernetes on virtualbox. I'm not using cloud provider so i create two persistent volume localy for my two replicas of my statefulset : pv0: kind: PersistentVolume apiVersion: v1 metadata: name:…
Yummel
  • 103
  • 1
  • 2
  • 11
8
votes
3 answers

kubeadm/kubectl/kube-apiserver turn on feature gate

i'm trying to test the local persistent volume in kubernetes v1.9.2. from what i gather (and i may be wrong!) i cannot use kubeadm to add these feature gates: $ sudo kubeadm version kubeadm version: &version.Info{Major:"1", Minor:"9",…
yee379
  • 6,498
  • 10
  • 56
  • 101
8
votes
1 answer

How to reuse an existing persistent volume claims

I have deleted my elasticsearch cluster, but now after I've deployed a new cluster I need to access the old data that was stored on 3 Persistent Volumes PV described bellow: NAME STATUS VOLUME …
PhiloJunkie
  • 1,111
  • 4
  • 13
  • 27
7
votes
4 answers

How to access PersistentVolume files on docker-for-desktop?

I'd like to access and edit files in my Kubernetes PersistentVolume on my local computer (macOS), but I cannot understand where to find those files! I'm pointing my hostPath to /tmp/wordpress-volume but I cannot find it anywhere. What is the hidden…
a.barbieri
  • 2,398
  • 3
  • 30
  • 58
7
votes
1 answer

PVC in pending state

I am trying to provision PV with RBD using https://github.com/kubernetes/kubernetes/tree/release-1.7/examples/persistent-volume-provisioning/rbd But I have faced an issue when my PVC is in Pending state without any meaningful log root@ubuntu:~#…
user2079197
  • 169
  • 1
  • 1
  • 11
6
votes
3 answers

K8s Pods Failure : error while running "VolumeBinding" prebind plugin for pod "app": Failed to bind volumes: timed out waiting for the condition

I am trying to use Persistent Volumes in AWS EKS. I followed all the steps mentioned from the below link https://aws.amazon.com/premiumsupport/knowledge-center/eks-persistent-storage/ When I deployed sample pods to check PVCs are created fine, I am…
6
votes
1 answer

How can I browse a persistent volume in kubernetes and edit files with GUI?

I have a Bitnami WordPress helm release, I need to browse the files and edit some from the persistent volumes it created. Ideally I'd be able to browse the files using a GUI (like Nautilus/GNOME files) and edit the files using VS Code for ease of…
Nomnom
  • 4,193
  • 7
  • 27
  • 37
6
votes
1 answer

Grafana for K8S - configure dashboard access permissions

We have configured Grafana user and admin roles using Grafana.ini which works great. Now we want to provide some permission to user to see specific dashboards, e.g. user X can see 5 dashboard and user Y can see 8 dashboards according to some…
6
votes
2 answers

Why cant I mount the same PVC twice with different subpaths to single pod?

Why cant I have a setup like below. I want to map vol1 to a pod with different subpath has xyz and vol2 to the same pod with subpath abc. volumes: - name:vol1 persistentVolumeClaim: claimName: testclaim - name: vol2 …
6
votes
1 answer

Kubernetes persistent volume overriding existing data in the pod/container

We are trying to use kubernetes persistent volume mapped with pod/container directory to have as backup. Container directory (/home) already have data from dockerimage but when we mount kubernetes persistent volume with container directory(/home)…
6
votes
1 answer

Ceph CSI (rbd.csi.ceph.com) vs Ceph RBD (kubernetes.io/rbd)

I'm using kubernetes v1.16.10 with a Ceph 13.2.2 Mimic cluster for dynamic volume provisioning through ceph-csi. But then I have found ceph-rbd Ceph RBD…
6
votes
2 answers

Can we get Persistent Volume with only PVC (without PV) in k8s?

I just saw a yaml file for Postgres with PersistentVolumeClaim and volumeMounts and volumes with the persistentVolumeClaim in the postgres container. I couldn't find any PersistentVolume defined. However, when the postgres container pod has been…
injoy
  • 3,993
  • 10
  • 40
  • 69
6
votes
1 answer

Auto delete persistant volume claim when a kubernetes job gets completed

Is there any policy or a way that enable us to auto delete a persistent volume claim when a kubernetes-job (using that claim) gets completed. FYI: i am creating persistent volume claim using delete policy i.e. on claim deletion the associated…
UmairAhmad
  • 150
  • 3
  • 14