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

Google Cloud Kubernetes Persistent Volume Claim error in deployment Yaml

I have a persistent volume claim file, which previously was being read by buildkite in the deployment stage. Only recently it has been erroring in the build process with this error: error: error validating "kube/common/01-redis-volume-claim.yml":…
0
votes
1 answer

How to share an EBS volume between 2 or more pods (only one will write, and the rest will only read)?

I understand that EBS volumes are currently only ReadWriteOnce. However, I have been able to have a persistent volume shared between two or more pods, if those pods get started almost at the same time. One of them writes to the volumes, and the…
0
votes
3 answers

How to have input data ready for apps on K8S

How to have the input data ready before I deploy a POD on K8S? As I understand, persistent volume is dynamically created using PVC (persistent volume claim), so in a POD yaml file, we can set the PVC and mount path like this: apiVersion: v1 kind:…
0
votes
2 answers

kubernetes: can't deploy jenkins images with persistent volume with RW access

With kubernetes, I'm trying to deploy jenkins image & a persistent volume mapped to a NFS share (which is mounted on all my workers) So, this is my share on my workers : [root@pp-tmp-test24 /opt]# df -Th /opt/jenkins.persistent Filesystem …
Vincent
  • 69
  • 1
  • 1
  • 7
0
votes
1 answer

How to copy data to k8s persistent volume?

I'm working on k8s airflow setup and I need a flow to update DAGs with ho hassle. Looks like the most "kubernetish" way is to use persistent volume. But how to write data (DAG python files) from outside the cluster into persistent volume?
orkenstein
  • 2,810
  • 3
  • 24
  • 45
0
votes
1 answer

kubernetes provisioner for pv in a statefulset with aws-ebs pv issue

Have followed the documentation on how to setup k8s on aws including Add the provider=aws Make sure the Nodes have correct IAM permissions Keep getting the following and I am unsure of where to find logs to see the underlying error that is making…
user1080942
0
votes
1 answer

Auto bound PVC to PV

Good day! If you do not explicitly specify volumeName when creating PVC in Openshift, then to which PV will the PVC be bounded? I think that PVC can be tied to any PV in the "Available" status if Storage size matches claim. apiVersion: v1 kind:…
0
votes
1 answer

Minio data does not persist through reboot

I deployed Minio on Kubernetes on an Ubuntu desktop. It works fine, except that whenever I reboot the machine, everything that was stored in Minio mysteriously disappears (if I create several buckets with files in them, I come back to a completely…
kd2amc
  • 39
  • 8
0
votes
1 answer

Kubernetes save mysql database's data inside a volume

I'm new to kubernetes (using minikube) and i want to deploy an springboot app which uses mysql to store data. I'm running my app inside a pod with 2 containers (one for my app and one for mysql), it works fine and as expected, my data are lost once…
Mssm
  • 717
  • 11
  • 29
0
votes
1 answer

Sharing the public directory of an express.js app across all pods in a Kubernetes cluster

I want to use a volume or persistent volume in a Kubernetes cluster deployed on Azure AKS to share the files in the public directory of an express.js app. The cluster has 3 replicas. I tried following this:…
0
votes
1 answer

How can I pass variable inside k8s module to another yml as parameter

I want to pass variable to another yml from ansible k8s module - name: Create a Secret hosts: 127.0.0.1 connection: local become: yes tasks: - name: Create minio-pvc k8s: state: present kind: PersistentVolumeClaim …
0
votes
1 answer

Mount a volume on cronjob in Openshift

I have Jenkins POD that mounts a pv with a pvc. Now I want to create a cronjob that use the same pvc in order to do some log rotation on jenkins build. How can I access to Jenkins PVC from cronjob in order to do some batch procedures on PV?
adev
  • 367
  • 1
  • 3
  • 20
0
votes
2 answers

Container keeps crashing for Pod in minikube after the creation of PV and PVC

i have a REST application integrated with kubernetes for testing REST queries. Now when i execute a POST query on my client side the status of the job which is automatically created remains PENDING indefinitely. The same happens with the POD which…
rehan
  • 143
  • 3
  • 17
0
votes
1 answer

Kubernetes persistent volume claim on /var/www/html problem

I have a magento deployment on nginx which uses a persistent volume and a persistent volume claim. Everything works fine, but I am struggeling with one problem. I am using an initContainer to install magento via cli (which works fine) but as soon my…
Jake
  • 175
  • 6
  • 17
0
votes
1 answer

Sql script file is not getting copied to docker-entrypoint-initdb.d folder of mysql container?

My init.sql (script) is not getting copied to docker-entrypoint-initdb.d. Note that the problem doesn't occur when I try to run it locally or on my server. It happens only when using the azure devops by creating build and release pipeline. There…