Kubernetes persistent volume claims: These are requested by pods in a cluster, from a storage pool that is pre-defined (or else, dynamically allocated).
Questions tagged [kubernetes-pvc]
351 questions
28
votes
4 answers
Shared PersistenceVolumeClaim(PVC) across namespaces
Is it possible to reference a PVC (in namespace-A) from namespace-B. Why I need that? I would like to allow the customer (private cloud) to point their volume through PVC, allowing them full control of the storage. At the Helm install time will ask…

Obidul Islam
- 283
- 1
- 3
- 4
23
votes
4 answers
Is there an efficient way to check the usage for PV/PVC in Kubernetes
For example, I have 50 Gib PV/PVC and grant to one Pod, I just want to check usage of the storage
The way I am just following is to set up a busybox pod with mounting the same PVC, then exec into the busybox to run df -h to check the storage.
I just…

Vampire_D
- 518
- 1
- 4
- 10
23
votes
4 answers
How to monitor disk usage of persistent volumes?
I want to monitor disk usages of persistent volumes in the cluster. I am using CoreOS Kube Prometheus. A dashboard is trying to query with a metric called kubelet_volume_stats_capacity_bytes which is not available anymore with Kubernetes versions…

Cemal Unal
- 514
- 3
- 6
- 15
17
votes
6 answers
How to delete only unmounted PVCs and PVs?
We don't want to delete PV and PVC as pods reuse them most of the times.
However, in the long term, we end up with many PVs' and PVCs' that are not used.
How to safely clean?

Pav K.
- 2,548
- 2
- 19
- 29
16
votes
3 answers
pod has unbound immediate PersistentVolumeClaims (repeated 3 times)
What is wrong with below.
# config for es data node
apiVersion: v1
kind: ConfigMap
metadata:
namespace: infra
name: elasticsearch-data-config
labels:
app: elasticsearch
role: data
data:
elasticsearch.yml: |-
cluster.name:…

RIYAJ KHAN
- 15,032
- 5
- 31
- 53
14
votes
1 answer
Why ReadWriteOnce is working on different nodes?
Our platform which runs on K8s has different components. We need to share the storage between two of these components (comp-A and comp-B) but by mistake, we defined the PV and PVC for that as ReadWriteOnce and even when those two components were…

AVarf
- 4,481
- 9
- 47
- 74
13
votes
2 answers
Kubernetes Unable to mount volumes for pod
I'm trying to setup a volume to use with Mongo on k8s.
I use kubectl create -f pv.yaml to create the volume.
pv.yaml:
kind: PersistentVolume
apiVersion: v1
metadata:
name: pvvolume
labels:
type: local
spec:
storageClassName: standard
…

Philip Kirkbride
- 21,381
- 38
- 125
- 225
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:
…

iooi
- 453
- 2
- 10
- 23
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…

cloudviz
- 971
- 4
- 15
- 40
9
votes
0 answers
PVC Events: waiting for a volume to be created, either by external provisioner "csi.vsphere.vmware.com" or manually created by system administrator
Tried to setup vsphere-CSI-driver following below documentation.
Documentation-followed: https://www.definit.co.uk/2019/06/lab-guide-kubernetes-and-storage-with-the-vsphere-cloud-provider-step-by-step/
User/Permissions associated to VSAN and VCenter…

Tanzeeb Samee
- 101
- 1
- 2
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
8
votes
2 answers
Move or change a volume namespace
We re-organise our namespaces in Kubernetes. We want to move our Persistent volume Claims created by a storageclass from one namespace to another.
(Our backup tool don't help).

Franklin Piat
- 3,952
- 3
- 32
- 45
7
votes
2 answers
kubernetes azure nodes exceed max volume count
I have kubernetes cluster of 4 nodes. according to this https://kubernetes.io/docs/concepts/storage/storage-limits/
azure should have limit of 16 pv per node.
Microsoft Azure Disk Storage 16
So I should have 64 volumes available.
Although i can…

rigby
- 1,280
- 3
- 13
- 21
7
votes
2 answers
Handling PersistentVolumeClaim in DaemonSet
I have a DaemonSet that creates flink task manager pods, one per each node.
Nodes
Say I have two nodes
node-A
node-B
Pods
the daemonSet would create
pod-A on node-A
pod-B on node-B
Persistent Volume Claim
I am on AKS and want to use azure-disk…

frictionlesspulley
- 11,070
- 14
- 66
- 115
7
votes
1 answer
Kubernetes: Redirecting pod STDOUT, STDERR and pod termination log to a PVC file
I am trying to get STDOUT and STDERR of a pod written to the file at PVC mount location.
Following is the template content of my deployment:
"template": {
"metadata": {
"name": "python-stdout-app",
"creationTimestamp":…

trideep_chatterjee
- 71
- 1
- 6