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
-1
votes
1 answer

Kubernetes PV/PVC not mounting to the correct volumeMounts in the pods

I'm running into a weird issue with my newer deployments where volumes aren't mounting correctly. Example.. There are PV/PVCs for three NFS directories that relate to one deployment: NFS/in NFS/out NFS/config In the deployment, those PVCs mount to…
-1
votes
2 answers

Kubernetes memory and persistenvolumeclaims

In kubernetes, for a Pod we specify memory limit and request. There is a PVC which is requested out from PV and created. How do PVC and memory limits corelate during memory allocation and usage, and what if there are conflicts between the two? I am…
-2
votes
1 answer

What is the volume type in kubernets

I create pod with pod.yaml. it's ok. kind: Pod ... spec: volumes: - name: mysql-data hostPath: path: /opt/mysql/data containers: ... - name: mysql image: 172.21.32.6:5000/mysql:5.7-utf8 ports: - containerPort: 3306 …
Tony.Luo
  • 13
  • 5
-2
votes
2 answers

K8s - an NFS share is only mounted read-only in the pod

Environment: external NFS share for persistent storage, accessible to all, R/W, Centos7 VMs (NFS share and K8s cluster), NFS utils installed on all workers. Mount on a VM, e.g. a K8s worker node, works correctly, the share is R/W Deployed in the K8s…
-3
votes
1 answer

How to mounts a directory from container into the host

I create a deployment yaml for a microservice. I am using hostpath volume type for persistentVolume and I have to copy data to a path in host. But I want to mount a directory from container into the host because data is in the container and I need…
1 2 3
51
52