Questions tagged [persistent-volume-claims]

284 questions
2
votes
2 answers

PersistentVolume and PersistentVolumeClaim for multiple deployments

I have 3 deployments, a-depl, b-depl, c-depl. Now each of these 3 deployments has a db deployment: a-db-depl, b-db-depl, c-db-depl. Now I want to persist each of these dbs. Do I need to create a single PV for all or a PV for each of the…
2
votes
2 answers

Kubernetes: StorageClass with local provisioner and StatefulSet kind

One of my pods has 'StatefulSet' kind with volumeClaimTemplates section referring to a StorageClass(SC) I created, see below. SC: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: local-storage provisioner:…
2
votes
2 answers

How to mount a persistent volume on a Deployment/Pod using PersistentVolumeClaim?

I am trying to mount a persistent volume on pods (via a deployment). apiVersion: apps/v1 kind: Deployment spec: template: spec: containers: - image: ... volumeMounts: - mountPath: /app/folder name: volume …
znat
  • 13,144
  • 17
  • 71
  • 106
2
votes
1 answer

Limit persistent volume claim content folder size using hostPath

I created a persistent volume claim with 20Mi storage limits and 17 Mi storage requests but I can upload a 50 Mi file in the hostPath folder. But what I want is to limit the folder content size. If the folder has more than 20Mi content in it so…
user3502626
  • 838
  • 11
  • 34
2
votes
0 answers

Percona XtraDB Cluster Operator - mount additional storage (INFILE)

We have Percona XtraDB Cluster Operator setup on Kubernetes. In main configuration of cluster we have set persistentVolumeClaim option for pxc and proxysql. This is the query, we would like to execute on our Percona Cluster: LOAD DATA LOCAL INFILE…
2
votes
1 answer

Kubernetes one pod per node, one persistent volume per pod

I was curious if it is possible to move completely off hostpaths and use local volumes (persistent volumes) instead. However, there doesn't seem to be a way to include volumeClaimTemplates into a daemonset. Statefulsets provide volumeClaimTemplates,…
2
votes
1 answer

GKE PersistentVolumeClaim for storageClassName "standard" is in pending state forever

I applied my PVC yaml file to my GKE cluster and checked it's state. It says the follwing for the yaml: apiVersion: v1 kind: PersistentVolumeClaim metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | …
xetra11
  • 7,671
  • 14
  • 84
  • 159
2
votes
1 answer

How to monitor kubernetes persistence volume claim i.e disk usage

Currently I am using Kubernetes v1.11.6. I deployed kubernetes in AWS by using KOPS. In k8s cluster, deployed kafka, elasticsearch. PVC for kafka and elasticsearch are EBS volumes in AWS. My question is how to monitor PVC used and remaining…
2
votes
1 answer

Persistent Storage in Kubernetes does not persist data

In my Kubernetes cluster, on my DB container, my persistent storage (dynamically provisioned on Digital Ocean) does not persist the storage if the pod is deleted. I have changed the reclaim policy of the storage from Delete to Retain but this does…
Rutnet
  • 1,533
  • 5
  • 26
  • 48
2
votes
0 answers

minikube mongodb statefulset with persistent volume config for 3 replicas

Pod fails to start and I am having a tough time debugging it with my limited experience. I have also mounted a volume from my local machine to the minikube vm like so: minikube start --cpus 4 --memory 8192 --mount-string="/data/minikube:/data"…
2
votes
3 answers

Local Persistent Volume in its own directory

I have got the local persistent volumes to work, using local directories as mount points, storage class, PVC etc, all using standard documentation. However, when I use this PVC in a Pod, all the files are getting created in the base of the mount…
haris2104
  • 23
  • 4
2
votes
1 answer

Kubernetes persistent volume claim overriding existing directory's owner and permissions

In Kubernetes, I am having a directory permission problem. I am testing with a pod to create a bare-bones elasticsearch instance, built off of an ElasticSearch provided docker image. If I use a basic .yaml file to define the container, everything…
Scott S
  • 461
  • 7
  • 17
2
votes
2 answers

Kubernetes PVC data persistent

I have a simple kubernetes cluster setup on GKE. To persist the data for my express web app, I have a mongodb deployment, cluster-ip-service for the mongodb deployment and persistent volume claim running in the cluster. Users data are being stored…
2
votes
3 answers

Prometheus server in pending state after installation using Helm

I am new to k8s and trying to setup prometheus monitoring for k8s. I used "helm install" to setup prometheus. Now: two pods are still in pending state: prometheus-server prometheus-alertmanager I manually created persistent volume for both Can…
2
votes
1 answer

How to configure the 'efs-provider' for Kubernetes?

I have followed the steps from this guide this guide to deploy the efs-provider for Kubernetes and bind an EFS filesystem. I have not succed. I am implementing Kubernetes with Amazon EKS and I use EC2 instances as worker nodes, all are deployed…