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

Can Kubernetes PV configured to use max size

Have NFS configured as Persistent volume in Kubernetes. Is there an option to specify entire size of the volume. apiVersion: v1 kind: PersistentVolume metadata: name: nfs spec: capacity: storage: 1Mi accessModes: - ReadWriteMany …
Shan
  • 2,141
  • 2
  • 17
  • 32
0
votes
0 answers

NFS volume sharing issue between wordpress pod and mysql pod

This repository kubernetes-wordpress-with-nfs-volume-on-gke is trying to implement a wordpress application that shares an NFS volume between mySQL and wordpress. The idea behind sharing a NFS volume between pods is to implement in the next step a…
0
votes
1 answer

Can't make kubernetes example for wordpress & mysql with persistent data work

I followed this kubernetes example to create a wordpress and mysql with persistent data I followed everything from the tutorial from creation of the disk to deployment and on the first try deletion as well 1st…
0
votes
1 answer

Openshift 2.4 cdk Gitlab-CE "SchedulerPredicates failed due to PersistentVolumeClaim is not bound: "gitlab-ce-redis-data", which is unexpected."

After spinning up the newest cdk v 2.4 (https://developers.redhat.com/products/cdk/download/), I get the following when trying to deploy gitlab-ce, per gitlab's directions at…
swv
  • 691
  • 1
  • 12
  • 28
-1
votes
0 answers

Kubernetes - issue with Persistent Volume and nfs-subdir-provisioner

I'm learning Kubernetes and following Jeff Geerling's 101 tutorial. While I was still using default storage class and ReadWriteOnce for this deployment I'm trying to create drupal deployment: --- kind: ConfigMap apiVersion: v1 metadata: name:…
-1
votes
0 answers

How to mount configMap directories from Host in pod in volume mounted?

I have this Spring Boot application which need some files, directories from my host and in kubernetes runtime to resolve those placeholders. Now, i tried to mount volume directly in the pod from my host directory location, but is monted empty dir I…
-1
votes
1 answer

How I can attach a pvc to a pv released?

I am trying to deploy a pod in kubernetes using helm which use a persistent volume that it is going to disconnect its pvc each time that I redeploy. When I do that the persistent volume it goes to state "released" and my pod cannot attach it and…
-1
votes
1 answer

Run the kubernetes pod from the point of failure without restarting

I have deployed an application in Kubernetes that prints numbers from 1-20 in Kubernetes. While printing numbers suddenly there is an internet failure and the pod crases after printing numbers from 1-10. Now the basic pod lifecycle says that the pod…
-1
votes
1 answer

Removing disks with gcloud

Trying to remove disks with the gcloud cli, I want to do something like this: gcloud compute disks delete $(gcloud compute disks list --filter="labels=(some-label)") The gcloud cli outputs: The following disks will be deleted: [10] in…
-1
votes
1 answer

K8s PVC is pending state always

This is my StorageClass, Pv and PVC enter image description here This is my PVC Describe enter image description here
-1
votes
1 answer

Can kubernetes volumes be used for deployments? If so what happens if each pod is on different host?

Can we use kubernetes volumes for deployments? If yes than that will be mutliple pods sharing the same volume? If that is possible then what happens when all the pods for the deployment are on different host machines? Especially when using Amazon…
-1
votes
1 answer

Is there a best practice when using nfs over GCEPersistentDisk?

I'm a software developer who got to a point where I need to mount a Persistent Volume with ReadWriteMany access mode in multiple nodes, in my GKE Cluster. I'm well aware that GCEPersistentDisk does not support such access mode, so I turned to NFS…
NI6
  • 2,477
  • 5
  • 17
  • 28
-1
votes
1 answer

How to claim an NFS persistent volume?

Being a beginner in kubernetes, I need: A guide to the steps to be followed for creating a deployment, having claimed an nfs pv. Please provide the yaml files to be applied in each step. Sorry for being unclear, I have UPDATED THE EXACT ISSUE…
kkpareek
  • 450
  • 1
  • 5
  • 15
-1
votes
1 answer

What does Kubernetes AccessMode represent?

No matter how many times I read the documentation I just don't get it, so apologies for the really basic question. I read that once a PersistentVolume is claimed, no other Pod can claim it - claims are exclusive. However PV accessmodes have options…
royneedshelp
  • 97
  • 1
  • 9
-1
votes
1 answer

Azure kubernetes - mount Azure blob as a volume and write using python?

I am trying to monut a persistent volume using Azure blob storage and write a a file using python application. Is there any sample available?
1 2 3
51
52