Questions tagged [kubernetes-pvc]

Kubernetes persistent volume claims: These are requested by pods in a cluster, from a storage pool that is pre-defined (or else, dynamically allocated).

351 questions
2
votes
0 answers

EKS sc / pv / pvc status `Bound` but the Volume isn't showing in UI, AWS EBS list

I can't find my created Volume anywhere, I checked all the AWS-EU zones and nothing. Here is my YAML: # apiVersion: v1 # kind: PersistentVolumeClaim # metadata: # name: m1-operation-volume-pvc # annotations: # …
2
votes
0 answers

Connecting Wiki.js to an existing PostgreSQL database using Azure Kubernetes

I am currently using WikiJS 2.x and storing the data in a PostgresSQL persistent volume using Azure Kubernetes. After upgrading Kubernetes version to stay within the Azure supported versions, Wiki.JS got disconnected from the database, and when…
Kyounee
  • 21
  • 3
2
votes
1 answer

How to clone or prepopulate PVC on GKE?

I’m trying to setup preview environments for my pull requests. Each environment needs its own prepopulated database. My seed database is about 15GB. I have a process to bootstrap a MySQL image and copy the /var/lib/mysql contents to a PVC volume (I…
2
votes
1 answer

glusterfs: failed to get the 'volume file' from server

I see below error in pod logs: , the following error information was pulled from the glusterfs log to help diagnose this issue: [2020-01-10 20:57:47.132637] E [glusterfsd-mgmt.c:1804:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file'…
user312307
  • 153
  • 6
  • 21
2
votes
2 answers

EKS cannot create persistent volume

I am deploying prometheus which needs persistent volume(i have also tried with other statefulset), but persistent volume is not created and persistent volume clam shows the flowing error after kubectl describe -n {namespace} {pvc-name}. Type:…
mad_boy
  • 371
  • 4
  • 13
2
votes
1 answer

sharing data between a cronjob and pod

Right now I have a cronjob that downloads data and I want to share it to another container that does the processing for the data as new ones are uploaded. I wanted to know if there was a way without any external services to share this data between…
2
votes
1 answer

Remain pod directory files while mounting a "hostpath PV " to pod

What I want is that mount a hostpath pv to my pod directory for example /usr/share/nginx/html/ and my files at this directory be remain. I have a nginx image that i have index.html file in it's /usr/share/nginx/html/ directory. And when i want to…
meisam bahrami
  • 107
  • 1
  • 8
2
votes
2 answers

How can I safely change resturl for glusterfs storage class on my Kubernetes cluster?

Heketi pod was restarted on our Kubernetes Cluster and now I'm struggling with how to change glusterfs storage class resturl with new heketi endpoint. What are the safest options without any data loss on our PVCs? I was able to recreate Kubernetes…
Oles Rid
  • 125
  • 12
2
votes
2 answers

One of two PersistentVolumeClaims' status is "Pending"

I have a file has PV, Service and 2 Pod statefulset including Dynamic PVC. When I deployed the file, a problem happened at PVC status. # kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS …
aspirant75
  • 127
  • 1
  • 2
  • 10
2
votes
1 answer

Bind several Persistent Volume Claims to one mount path

I am working on an application on Kubernetes in GCP and I need a really huge SSD storage for it. So I created a StorageClass recourse, a PersistentVolumeClaim that requests 500Gi of space and then a Deployment recourse. StorageClass.yaml: …
2
votes
1 answer

which one to choose between ( PVC & ConfigMap )

since this morning i've a question in my mind. What is the best things to manage file configuration on kubernetes! For the moment we use PVC & PV But i would want to update automatically during the CI pipeline the config files . For one…
morla
  • 675
  • 4
  • 15
  • 32
2
votes
0 answers

K8s pod unchedulable: x node(s) had volume node affinity conflict

This question is similar to Kubernetes Pod Warning: 1 node(s) had volume node affinity conflict. However, I wanted to add a bit more color to my particular situation. I am attempting to use the mongodb helm chart. I have created a created a…
MirroredFate
  • 12,396
  • 14
  • 68
  • 100
2
votes
2 answers

Adding Persistent Volume Claim to the existing file in Container

In my docker image I have a directory /opt/myapp/etc which has some files and directories. I want to create statefulset for my app. In that statefulset I am creating persistent volume claim and attach to /opt/myapp/etc. Statefulset yaml is attached…
2
votes
2 answers

GKE PVC vs Disk

I have my application running on google kubernetes engine and currently uses pvc for data storage. I am just not able to decide which storage option should we use PVC or Disk? In case of PVC we can't have snapshot, apart from this is there any…
1
vote
0 answers

Kubernetes PVC on NFS showing total NFS drive size instead of PVC size

I have a Kubernetes setup where I've defined a PersistentVolumeClaim and a Pod. The PVC is set to request 30GB of storage. The NFS server has a total drive size of 100GB. I"m using the nfs-subdir-external-provisioner helm chart and Azure…