Questions tagged [kubernetes-pvc]

Kubernetes persistent volume claims: These are requested by pods in a cluster, from a storage pool that is pre-defined (or else, dynamically allocated).

351 questions
0
votes
2 answers

access minikube folder's data from host machine

I'm using minikube for running my Kubernetes deployment: pvc: --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pipeline spec: storageClassName: accessModes: - ReadWriteOnce resources: requests: storage:…
rluq
  • 37
  • 1
  • 8
0
votes
1 answer

scale stateful set with shared volume per az

I would like to scale a kubernetes stateful set in EKS which serves static data. The data should be shared where possible, which means by availability zone. Can I specify a volume claim template to make this possible? Or is there another…
shaunc
  • 5,317
  • 4
  • 43
  • 58
0
votes
0 answers

Webhooks in kubernetes

I have a requirement to watch for PVC creation events and handle it before forwarding to actual Kubernetes controller for processing the PVC creation. I went through many docs and feel webhooks can be used for achieving this. But would like to get…
ambikanair
  • 4,004
  • 11
  • 43
  • 83
0
votes
1 answer

Helm timeout for cronjob with a persistent volume

I have a Kubernetes cron job in AWS EKS that requires a persistent volume, so this is roughly what I have: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-{{$.Release.Name}}-tmp spec: accessModes: - ReadWriteOnce …
bereal
  • 32,519
  • 6
  • 58
  • 104
0
votes
1 answer

Specifying environment variable for k8s pvc for storage size

Is there a way to specify environment variables in a persistent volume claim in kubernetes for the storage size? e.g. something like that: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: jenkins-pvc namespace: devops spec: …
devdanej
  • 3
  • 5
0
votes
1 answer

Kubernetes: creating permanent folders in pod

I have a pod in which I'm running a image. The pod is not mine but belongs to the company I work for. Each time I mount a new image in the pod it has access to some predefined "Permanent" folders. When I use the edit deployment command I see this: …
Mr.Gomer
  • 501
  • 5
  • 14
0
votes
1 answer

Backup and Restore of a pvc created using AzureFile

I used AzureFileShare to create a dynamic PVC for a pod where I deployed a NodeJS application. Below is the yaml of the storageclass I used to create the pvc, apiVersion: storage.k8s.io/v1 metadata: name: my-azurefile provisioner:…
0
votes
1 answer

Does in Kubernetes a PV/PVC guarantees sticky mounting of pods?

I would like to understand if through PVC/PV a pod that is using a volume after a failure will be always re-attached to the same volume or not. Essentially I know that this can be a case for Statefulset but I am trying to understand if this can be…
toto'
  • 1,325
  • 1
  • 17
  • 36
0
votes
1 answer

Kubernetes Minio Volume Node Affinity Conflict

I have setup a testing k3d cluster with 4 agents and a server. I have a storage class defined thus: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-storage provisioner: kubernetes.io/no-provisioner volumeBindingMode:…
KillerSnail
  • 3,321
  • 11
  • 46
  • 64
0
votes
1 answer

K8s PVC: obtain the utilization state of PCV

I'm working on a k8s namespace environment and I have a pod and its pvc deployed in it. When the pod transfers data on PVC I would know the percentage of memory used and free. There is a way?
0
votes
1 answer

kubernetes aws-efs-csi-driver and permissions

I'm using bitnami/etcd chart and it has ability to create snapshots via EFS mounted pvc. However I get permission error after aws-efs-csi-driver is provisioned and PVC mounted to any non-root pod (user/gid is 1001) I'm using helm chart…
DmitrySemenov
  • 9,204
  • 15
  • 76
  • 121
0
votes
0 answers

How to create a container/pod successfully mounted with PVC with Storage class created with a specific UID

I have created a Storage class with Uid and Gid in mountOptions for a trident Storage class as below: mountOptions: uid=1000 gid=1000 And created assoicated PV and PVC with the newly created Storage Class. The PV and PVC are created…
0
votes
1 answer

actual data encryption key is used to encrypt PV in GKE

In GKE cluster, I get to encrypt a dynamically provisioned PV using customer supplied key (using Cloud KMS). I specify KMS resource name in storage class, and create PVC out of this. It is unclear to me, which key is used to encrypt data in PV. Is…
0
votes
1 answer

Different behaviour in GKE between etcd and PV storage for same key action

GKE natively works with customer supplied key (using KMS), including actions like key rotation, key disabling/enabling for etcd / content in control plane. While customer supplied key (using KMS) also works for encryption of dynamic PV mounts (using…
0
votes
0 answers

Is there any way to know when a PVC is mounted last time in k8s?

Is there any way to know when a PVC is mounted last time in k8s? Thank you for your help
Kojay
  • 133
  • 1
  • 6