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

What events are triggered for PV/PVC and from where?

kubectl get events list the events for the K8s objects. From where the events are triggered for PV/PVC actually ? There is a list of volume events https://docs.openshift.com/container-platform/4.5/nodes/clusters/nodes-containers-events.html but it…
0
votes
1 answer

kubectl statefull set rolling restart with pvc cleanup

I have a stateful set with persistent volume. If I do kubectl rollout restart statefulset pods are recreated and persistent volumes are reclaimed, as expected. Hovewer, I need to create a cron job that once every now and then will do a rolling…
0
votes
1 answer

Longhorn PVC redistribution volumes on all nodes

We are using 3 master - 4 worker setup cluster. Recently due to disk pressure we had to add another worker to our cluster and we would like to redistribute some of the existing persistent volume claims to new worker. Right now, 2 out of 4 Longhorn…
0
votes
2 answers

PVC status is stuck on pending and PV status is available

I was trying to increase the PVC size from 10G to 20G, since we are running on 1.9.3 doing it online is not there. So i have deleted the PVC and created with new value of 20G as storage. pvc-b196868cd-bc75-12e8-ad32-075738325c 100Gi RWO …
Nishanth
  • 161
  • 2
  • 11
0
votes
1 answer

gsutil rsync from GCP bucket to Kubernetes Persistent Volume uses more disk space than it should

I have a bucket folder in Google Cloud with about 47GB of data in it. I start a new Kubernetes StatefulSet (in my Google Cloud Kubernetes cluster). The first thing that the container inside the StatefulSet does is to use gsutil -m rsync -r…
0
votes
1 answer

Need to run stateful applications on kubernetes cluster bootstrapped with Kubeadm

I have a kubernetes cluster bootstrapped with kubeadm. I want to run stateful applications on it but dont want to use hostpath. Is there any way to run stateful applications without using cloud storage(like EBS, Azure Disk etc) and hostPath? I saw a…
0
votes
1 answer

Dynamic volume provisioning folder per pod in a volume?

What I am aiming for is a folder(pod name) per pod created inside of a volume using a volumeClaimsTemplate in a StatefulSet. An example would be: PersistentVolume = "/data" Pods: pod-0 = "/data/pod-0" pod-1 = "/data/pod-1" I am struggling with…
0
votes
1 answer

Kubernetes: fsGroup has different impact on hostPath versus pvc and different impact on nfs versus cifs

Many of my workflows use pod iam roles. As documented here, I must include fsGroup in order for non-root containers to read the generated identity token. The problem with this is when I additionally include pvc’s that point to cifs pv’s, the volumes…
Howard_Roark
  • 4,088
  • 1
  • 14
  • 24
0
votes
0 answers

How to add files/application to the persistent volume for my pods to read from

I have a setup complete and running for PHP including the creation and mounting of a persistent volume. What I do not understand and so far can not find a how tutorial is on how to add my application code to the volume for my servers/pods to read…
ErnieAndBert
  • 1,344
  • 3
  • 21
  • 43
0
votes
1 answer

Is it necessary to create persitent volume object and then claim it using persistent volume claim or we can directly use storage class

As in documentation of Kubernetes, it says if we use Storage class then it creates dynamic PV(Persistent Volume) object according to our need and using PVC(persistent volume claim) we can claim that now my question is if I create Storage class…
0
votes
0 answers

Ubuntu 20.04 qemu-kvm sharing folders

I am using minikube on ubuntu and start with --driver=none. Since it is recommended to use kvm2(for linux host) and need to be root user with --driver=none, I am now switching to kvm2. I have few kubernetes deployment using persistent volume and…
0
votes
1 answer

New PVC for an active pod

Is it possible to plug and play storage to an active pod without restarting the pod? I want to bind a new storage to a running pod without restarting the pod. Does Kubernetes support this?
0
votes
1 answer

Copy image from local to persistence volume

I'm trying to copy an image to my persistence volume ( it's like a default image that i want from my application to use it when a user have no image so it comes with application static files ) So what i've done so far is creating the …
0
votes
1 answer

Does Google FileStore work with Windows containers on GKE?

I referred the below link from GCP https://cloud.google.com/filestore/docs/accessing-fileshares . Created a Filestore instance followed by a pv & pvc as mentioned in the example. When I deployed my pod (windows container), I have observed the mount…
0
votes
1 answer

Persistent Volume Mount Causes App install to hang

I have am using the follwoing volume claim: kind: PersistentVolumeClaim apiVersion: v1 metadata: name: persistent-storage-claim labels: app: {{ include "api-chart.name" . }} chart: {{ include "api-chart.chart" . }} release: {{…
ejlouw
  • 305
  • 4
  • 14