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
2 answers

Which are the best suitable volume types in kubernetes to store host configuration?

Can we use single volume across multiple Nodes in read-only manner and that way save on the storage required for hosting Configuration in kubernetes. If yes then which is the best sutaible volume type for same?
Sagardevd
  • 121
  • 1
  • 1
  • 6
0
votes
1 answer

Deployed port is not getting exposed in kubernetes in nexus

I am working on creating a nexus repo through kubernetes. By browesing i came across this site (https://blog.sonatype.com/kubernetes-recipe-sonatype-nexus-3-as-a-private-docker-registry) I was able to create a service and deployment and pod and…
0
votes
1 answer

PostgreSQL does not pick data written by another PostgreSQL container at /var/lib/postgresql/data/

I have set two postgresql docker containers to write to a mounted nfs volume at /var/lib/postgresql/data/ in a Kubernetes Cluster. I noted that new changes are written correctly but data written by one container does not reflect on the database of…
SamwelOpiyo
  • 358
  • 3
  • 12
0
votes
1 answer

Kubernetes associate cinder storage with pod

I have a K8 cluster and need to associate my pods with a cinder storage options. I tried two options but both fail. Can anyone shed light on what is happening? Option1: Manually created the volume in OpenStack and integrated it in my yaml…
ram
  • 21
  • 1
  • 7
0
votes
1 answer

Why deletion of a STS application is not deleting OpenEBS Jiva volume pvc's also automatically?

I am running one Mongo DB STS application which is consumed on OpenEBS 0.6.0 Jiva volume and I have deleted this app. But it is not deleting corresponding PVC. How can I clean up my system? Is this the default behavior?
0
votes
1 answer

Kubernetes: save configuration directory outside container

What is the best way for mounting a configuration directory such as /etc/apache2 as a volume in kubernetes? The pod containing apache2 container may be scheduled in different nodes. I want to persist the configuration files between container…
Nimsa
  • 43
  • 1
  • 4
0
votes
1 answer

PersistentVolume marked as bound but invisible in containers

I'm starting with GKE (and kubernetes in general) and I want to mount a persistent volume on a pod using a gcePersistentDisk. I first created a Persistent Disk (project-data) in Compute Engine, then created a PersistentVolume and a…
0
votes
0 answers

trained model on Kubernetes

We intend to deploy a trained model in production. since we can not keep the same in the code base, we need to upload into the cloud and refer it on runtime. We are using kubernetes, and I'm relatively new to it. Below is my stepwise understanding…
0
votes
1 answer

GKE Kubernetes Persistent Volume

I try to use a persistent volume for my rethinkdb server. But I got this error: Unable to mount volumes for pod "rethinkdb-server-deployment-6866f5b459-25fjb_default(efd90244-7d02-11e8-bffa-42010a8400b9)": timeout expired waiting for volumes to…
fstn
  • 149
  • 4
  • 10
0
votes
1 answer

Azure ACS AzureFile Dynamic Persistent Volume Claim

I am trying to Dynamically provision storage using a storageclass I've defined with type azure-file. I've tried setting both the parameters in the storageclass for storageAccount and skuName. Here is my example with storageAccount set. kind:…
0
votes
1 answer

Pod exceeding persistent volume capacity in minikube

I am creating persistent volume with capacity of 50Mi in minikube. Pod claims it But when size of content increases beyond 50Mi and no error. Is there issue with kubernetes or minikube.? or this is because I am not using fixed sized volume i-e…
0
votes
2 answers

kubernetes : dynamic persistent volume provisioning using iSCSI and NFS

I am using Kubernetes 1.4 persistent volume support, iSCSI/NFS PV and PVC successfully, in my containers. However it needs to first provision the storage by specifying the capacity both at PV creation and during claiming the storage. My requirement…
0
votes
1 answer

K8S Unable to mount AWS EBS as a persistent volume for pod

Question Please suggest the cause of the error of not being able to mount AWS EBS volume in pod. journalctl -b -f -u kubelet 1480 kubelet.go:1625] Unable to mount volumes for pod "nginx_default(ddc938ee-edda-11e7-ae06-06bb783bb15c)": timeout expired…
mon
  • 18,789
  • 22
  • 112
  • 205
0
votes
1 answer

OpenShift MySQL failed to attach volume

I have a small Python Flask server running on OpenShift starter us-west-1. I use a MySQL container for data storage. Yesterday I scaled down the MySQL application from 1 to 0 pods. When I tried to scale it back up to 1 pod, the container creation…
0
votes
1 answer

Would the latency of a persistent volume claim on Kubenetes make my service unavailable?

Within Why does a GCE volume mount in a kubernetes pod cause a delay? is: But when the pod has a GCE persistent volume mount, the Running state is reached somewhere between 20 and 60 seconds. So for example when doing a rolling deployment, does…