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
11
votes
2 answers

How do I change the storage class of existing persistent volumes?

I have a bunch of standard PVs bound to PVCs in Kubernetes running in Google Kubernetes Engine. I want to change their storage class to SSD. How do I achieve that?
11
votes
4 answers

Kubernetes NFS Mount Options

I've recently started using NFS volumes for my clusters on-prem. This is the simplest and best solution for me, however it seems pretty limited in regards to the actual mounts options. Is there anyway to set mount options on the node/cluster in the…
Bonn93
  • 163
  • 1
  • 1
  • 6
11
votes
1 answer

Using Windows SMB shares from Kubernetes deployment app

We are migrating legacy java and .net applications from on-premises VMs to an on-premises Kubernetes cluster. Many of these applications make use of windows file shares to transfer files from and to other existing systems. Deploying to Kubernetes…
10
votes
2 answers

How to set pvc with statefulset in kubernetes?

On GKE, I set a statefulset resource as --- apiVersion: apps/v1 kind: StatefulSet metadata: name: redis spec: serviceName: "redis" selector: matchLabels: app: redis updateStrategy: type: RollingUpdate replicas: 3 template: …
10
votes
3 answers

How to store my pod logs in a persistent storage?

I have generated logs for my pods using kubectl logs 'pod name. But I want to persist these logs in a volume (some kind of persistent storage), because container logs will get wiped out if the pods go down. Is there a way to do this? Do I have to…
Saranya Gupta
  • 1,945
  • 2
  • 10
  • 14
10
votes
1 answer

Shared directory for a kubernetes Deployment between it's replicas

I have a simple deployment with 2 replicas. I would like that each of the replicas have same storage folder in them (shared application upload folder) I've been playing with claims and volumes, but haven't got the edge still, so asking for a quick…
9
votes
3 answers

Persistent Storage in EKS failing to provision volume

I followed the steps from AWS knowledge base to create persistent storage: Use persistent storage in Amazon EKS Unfortunately, PersistentVolume(PV) wasn't created: kubectl get pv No resources found When I checked the PVC logs, I'm getting the…
9
votes
1 answer

How to set up AWS S3 bucket as persistent volume in on-premise k8s cluster

Since NFS has single point of failure issue. I am thinking to build a storage layer using S3 or Google Cloud Storage as PersistentVolumn in my local k8s cluster. After a lot of google search, I still cannot find an way. I have tried using s3 fuse to…
jwpublic
  • 93
  • 1
  • 1
  • 4
9
votes
2 answers

How to enable persistence in helm prometheus-operator

I am using the prometheus-operator helm chart. I want the data in prometheus server to persist. But open restart of the prometheus StatefulSet, the data disappears. When inspecting the yaml definitions of the associated StatefulSet and Pod objects,…
9
votes
2 answers

Error "no persistent volumes available for this claim and no storage class is set"

Is it required to create the directory manually in nodes or will it be auto created by pv? Here is my pv & pvc file, and I'm seeing this error no persistent volumes available for this claim and no storage class is set how to resolve this? kind:…
Pooja
  • 481
  • 1
  • 8
  • 15
9
votes
1 answer

Kubernetes Permission denied for mounted nfs volume

The following is the k8s definition used: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nfs-pv-provisioning-demo labels: demo: nfs-pv-provisioning spec: accessModes: [ "ReadWriteOnce" ] resources: requests: …
lokanadham100
  • 1,149
  • 1
  • 11
  • 22
9
votes
1 answer

Add persistent volume in Kubernetes StatefulSet on Minikube

I'm new to Kubernetes and I'm trying to add a PVC in my StatefulSet on Minikube. PV and PVC are shown here: NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE neo4j-backups …
dimzak
  • 2,511
  • 8
  • 38
  • 51
9
votes
1 answer

Local files transfered to a Kubernentes Persistent Volume?

I'm extremely new to Kubernetes (besides it's not my field) but I got required to be able to execute this practice. Question is that I need a Handbrake Converter in a containerized pod with a Persistent Volume mounted on a GKE cluster: 3…
8
votes
4 answers

Kubernetes - MountVolume.NewMounter initialization failed for volume "" : path does not exist

I am trying to setup a Local Persistent volume using local storage using WSL. But the pod STATUS stops at Pending. The kubectl describe pod gives below error. Warning FailedMount 21s (x7 over 53s) kubelet …
8
votes
3 answers

Where is Kubernetes storage location of a Persistent Volume on Docker Desktop for mac?

I'm not sure if I have a configuration error or I just don't know where to look but I can't seem to find where my files are being stored with these configurations apiVersion: v1 kind: PersistentVolume metadata: name: tmp-storage spec: …
Jason M
  • 1,013
  • 13
  • 25
1 2
3
51 52