Questions tagged [persistent-volume-claims]
284 questions
0
votes
1 answer
Why is my Host Path Persistent Volume reachable from all pods?
I'm pretty stuck with this learning step of Kubernetes named PV and PVC.
What I'm trying to do here is understand how to handle shared read-write volume on multiple pods.
What I understood here is that a PVC cannot be shared between pods unless a…

ppenelon
- 43
- 5
0
votes
1 answer
postgresql.conf not found when using volume mount
I have the following deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres-deployment
spec:
replicas: 1
selector:
matchLabels:
component: postgres
template:
metadata:
labels:
component:…

zendevil.eth
- 974
- 2
- 9
- 28
0
votes
2 answers
Terraform Kubernetes persistent storage setup no connection made dial tcp error
I am getting this error when ever I try to create a persistent claim and volume according this kubernetes_persistent_volume_claim
Error: Post "http://localhost/api/v1/namespaces/default/persistentvolumeclaims": dial tcp [::1]:80: connectex: No…

Alam
- 63
- 5
0
votes
2 answers
Define/attach Persistence Volume claim in application.properties
I would like to define or more "attach" a persistance volume claim (which is already present in K8s and named "pvc-vol-divacms-epass") and all I can see in the documentation is that there is a property "quarkus.kubernetes.pvc-volumes" for which the…

Daniel W.
- 71
- 7
0
votes
1 answer
Backup Kubernetes PV/PVC to Local Disk w/o using CSI?
I'm looking for to create a local backup for PV/PVC in K8s, then restore. (Not using any CSI)
Have tried VolumeSnapshot in k8s, but it creates a in-cluster backup, and what I need is a local copy, so I can archive it and move around. Also found some…

FrozenBeef
- 11
- 2
0
votes
2 answers
Mountpath error: not a directory: unknown
I'm testing with ceph-csi pv and pvc's on a kubernetes cluster (version 1.21.2). Trying to assign a small pv for a dnsmasq pod to be able to change dnsmasq.conf without restarting the pod.
apiVersion: v1
metadata:
name: dnsmasq-pvc
namespace:…

Nyquillus
- 179
- 1
- 5
- 23
0
votes
2 answers
Kubernetes PV through Ceph RBD
I'm testing with a small k8s cluster and ceph cluster to create and assign persistent volumes. Ceph cluster version is Nautilus and the machines in k8s cluster are ubuntu 20.04. As far as I understand, I can't install ceph nautilus common packages…

Nyquillus
- 179
- 1
- 5
- 23
0
votes
2 answers
Jupyterhub on Kubernetes: Automated pvcs are not creating new local persistent volumes
I try to deploy Jupyterhub (Zero to Hero) on my local Kubernetes in a RHEL 8 machine.
After hours of trying the basic service is running now. I created a pv for the main service, which works fine.
Name: hub-db-dir
Labels: …

Bltzz
- 11
- 1
- 3
0
votes
1 answer
Copying pvc snapshot from one kubernetes cluster to another
Can someone suggest any ideas, or references that I could use to copy a pvc snapshot from one cluster to another without using any third-party like velero.

Ka98
- 1
0
votes
3 answers
persistence volume with multiple local disks
I have a home Kubernetes cluster with multiple SSDs attached to one of the nodes.
I currently have one persistence volume per mounted disk. Is there an easy way to create a persistence volume that can access data from multiple disks? I thought about…

Steve
- 863
- 3
- 9
- 21
0
votes
0 answers
how to link a mysql database to a persistent volume on kubernetes
I have created a db called db1 and it's stored in /var/lib/mysql on my physical machine and created a db2 in kubenetes and its stored in a pv I want to link db1 so that I access it through the persistent volume.
This is the service file:
apiVersion:…

Benabbou F Zouhir
- 41
- 3
0
votes
1 answer
How to change the persistent volume claims change default directory?
kind: Job
metadata:
name: test
spec:
ttlSecondsAfterFinished: 3600
backoffLimit: 0
template:
metadata:
annotations:
version: "1.0"
labels:
component: test
name: test
spec:
securityContext:
…

Sourabh Ninawe
- 389
- 1
- 6
- 17
0
votes
1 answer
Is it possible to take an existing PV which has Delete policy and different storage class and attach it to a new PVC with different storage class?
I don't have code for this as i am trying to understand it theoretically.
Current state:
a PV and PVC get dynamically created by a helm chart. This pv and pvc are using default storage class with delete policy
Future state:
I want to attach a new…

shan
- 125
- 3
- 16
0
votes
1 answer
Kubernetes persistent volume claim - Not sure what is the meaning of "capacity"
I am wondering what does "capacity" mean for Kubernetes persistent volume claim. Does that mean Kubernetes will schedule a pod with the volume you specified (e.g. 20 GB) on your cluster and that 20 GB space will be isolated or does it automatically…

franco mo
- 11
- 1
0
votes
2 answers
How to scale a Kubernetes deployment which uses a Persistent Volume Claim to 2 Pods?
I have a Kubernetes deployment (apache flume to be exact) which needs to store persistent data. It has a PVC set up and bind to a path, which works without problem.
When I simply increase the scale of the deployment through kubernetes dashboard, it…

uylmz
- 1,480
- 2
- 23
- 44