Questions tagged [persistent-volume-claims]
284 questions
0
votes
0 answers
Data loss on elasticsearch with Kubernetes - indexes are deleted and created automatically
Setup
I'm using elasticsearch:7.9.3 on Kubernetes via Google Kubernetes Engine. The elasticsearch data is persisted using a PersistentVolumeClaim with 20GB. I tested that the PersistentVolumeClaim is set up correctly by deleting and recreating the…

Syzygy
- 578
- 7
- 27
0
votes
1 answer
Kubernetes shared persistent volume between pods results in no file events
I have 2 pods that use the same pvc to mount a pv so that they can share files through the mounted directory. Pod A has a Java Application that watches for new files (using java.nio.file.WatchService) in the mounted directory, but if pod B…

Jefski14
- 336
- 2
- 8
0
votes
2 answers
Issue with Sidecar container log file path in Kubernetes
I have a deployment with 2 containers running in the same Pod in my Kubernetes cluster. One is NGINX and the other is a sidecar (bash image). Following is the definition file :-
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp:…

vinod827
- 1,123
- 1
- 21
- 45
0
votes
2 answers
Kubernetes: How to config a group of pods to be deployed on the same node?
The use case is like this:
So we have several pods using the same persistentVolumeClaim with the accessMode set to ReadWriteOnce (because the storage class of the PersistentVolume only support ReadWriteOnce).
From…

Ken Tsoi
- 1,195
- 1
- 17
- 37
0
votes
1 answer
How can I provision a volume (part II)?
I am trying to configure RBAC so that I can provision a volume. This is a follow-up of this (How can I properly provision a volume for argo?) thread. Adding a role changed the error from "cannot get resource" to "cannot create resource".
I now…

user3877654
- 1,045
- 1
- 16
- 40
0
votes
2 answers
Create Kubernetes Persistent Volume with mounted directory
In my /mnt/ I have a number of hard drives mounted (e.g. at /mnt/hdd1/, /mnt/hdd2/). Is there any way to make a K8s Persistent Volume on /mnt that can see the content of the hard drives mounted under /mnt? When I make a Local Persistent Volume on…

Ali_MM
- 68
- 1
- 9
0
votes
0 answers
Attaching a persistent volume claim is taking more time to a pod
I am trying to test the time taken for attaching the Persistence Volume claim to the Pod every time it is created and it is taking time between 16 seconds to 36 seconds in various test that I performed. This is in AKS. The…

acm
- 77
- 3
- 11
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…

bUff23
- 332
- 2
- 16
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…

Spencer
- 1,915
- 1
- 10
- 11
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
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…

xoxocoder
- 294
- 3
- 15
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…

Senthil
- 323
- 4
- 15
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?

gssg_0413
- 1
- 5
0
votes
1 answer
How to claim & configure Bitnami Docker Discourse data in Kubernetes Persistent volume?
Currently I have bitnami discourse in docker and the data storing in pod, we scale up the pods from 1 to many. Now I am facing error with media uploads, the issue is the pods data are not in sync so I have to mount single volume and shared it…

Swatantra Gupta
- 3
- 1
0
votes
3 answers
GKE migrate pv to a new cluster whithin the same GCloud project
I would like to move existing PVCs/PVs to a new GKE cluster in the same Google project. Can someone give me a hint how to do this?
Thanks in advance!

Timo Antweiler
- 171
- 1
- 2
- 11