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

Can't assign kubernetes persistent volume to uwsgi application

Trying to assign persistent volume to an uWSGI application, but I'm getting following error: bind(): Operation not permitted [core/socket.c line 230]. Works when I assign none-persistent "empty dir" volume. Here are the yaml files of the persistent…
0
votes
1 answer

Hosting local directory to Kubernetes Pod

I have a single node Kubernetes cluster. I want the pod I make to have access to /mnt/galahad on my local computer (which is the host for the cluster). Here is my Kubernetes config yaml: apiVersion: v1 kind: Pod metadata: name:…
PinkElephantsOnParade
  • 6,452
  • 12
  • 53
  • 91
0
votes
1 answer

Kubernetes/Openshift pods with PVC retain their cluster name and IP?

If Kubernetes Pods bound to PVCs go down/restart, they are guaranteed to come back up with the same cluster name in order for the PVC binding to be valid. But Are they guaranteed to come back up with the same ClusterIp?
user2405589
  • 881
  • 2
  • 14
  • 32
0
votes
0 answers

FailedAttachVolume error on Kubernetes with StorageOS

I am trying to setup a high availability cluster with storageOS.Literally i want to replicate volumes between nodes and if a node down my statefull application should start on new node with last state. I have 1 Master and 2 Slave nodes on bare…
0
votes
1 answer

Traefik HA with persistent volume

Is there currently any way to utilize kubernetes persistent volumes instead of a KV store in order to store Let's encrypt certificates? From the documentation, storing let's encrypt information inside a json file cannot be used to share info across…
ITChap
  • 4,057
  • 1
  • 21
  • 46
0
votes
1 answer

GCE volume mounts as compared to Kubernetes volume mounts

Kubernetes has pretty extensive volume and volume mounting support (many different volume types, subpaths, mounting single files). Can the same be achieved with GCE VMs? Update: I have some Kubernetes workflow that uses NFS and GCE PD…
Ark-kun
  • 6,358
  • 2
  • 34
  • 70
0
votes
1 answer

Creating a Deployment and PersistentVolumeClaim with dynamic AWS EBS backed claims

I create a Deployment with a volumeMount that references a PersistentVolumeClaim along with a memory request on a cluster with nodes in 3 difference AZs us-west-2a, us-west-2b, and us-west-2c. The Deployment takes a while to start while the…
Michael
  • 546
  • 1
  • 7
  • 19
0
votes
1 answer

Force PersistentVolumeClaim and Deployment to land in same availability zone

I have a kubernetes cluster in AWS with ec2 worker nodes in the following AZs along with corresponding PersistentVolumes in each AZ. us-west-2a us-west-2b us-west-2c us-west-2d My problem is I want to create a Deployment with a volume mount that…
0
votes
1 answer

How to resize Kubernetes volumes (AWS EBS) on versions 1.8 without the alpha feature activated?

Have anyone managed to resize a k8s volume (AWS EBS) with zero downtime on k8s 1.8 without using the volume expansion alpha feature? I’m trying to find a way to do that in one of my Statefulsets clusters (3 replicas) but don’t know how. With outage,…
0
votes
1 answer

How to remove a kubernetes node from storageos?

I'm trying to remove a node from my Kubernetes cluster running at my local data center on storageos. Before doing the delete, I went ahead and checked the 'Drain' option and made sure that the node was hosting no masters or replicas. I then went…
Gadzair
  • 1,221
  • 14
  • 21
0
votes
2 answers

Local persistent Volume 1 node(s) didn't find available persistent volumes to bind

I'm getting started with persistent volumes and k8s. Im trying to use a local folder on my RH7 box w minikube installed. Im getting the error: 0/1 nodes are available: 1 node(s) didn't find available persistent volumes to…
encore02
  • 17
  • 1
  • 6
0
votes
1 answer

hostPath PV with RWO access mode for sharing between multiple pods

Is it possible to share a hostPath PV between multiple PODs (in multiple deployments) with RWO access mode provided both deployments are on same host as the PV is created for? This is all under same project/namespace.
raj_arni
  • 959
  • 2
  • 15
  • 29
0
votes
1 answer

Multiple persistent volumes in minikube

I want to attach multiple volumeMounts to deployment in minikube on one persistent volume claim. I have a tomcat deployed app that needs to preserve three different folders (/var/log/app, /var/lib/app, /etc/app). When the container starts I should…
0
votes
1 answer

How to execute scripts to import csv files inside a postgres deployed on a Kubernetes cluster?

I'm trying to deploy Postgres on my Kubernetes cluster and I have been successful to do this, but then I don't know how I can import my data which are in csv format. I already have the scripts which gets the path to data and create a database in a…
0
votes
0 answers

Protecting contents of Persistent Volumes

Let's say that a pod is compromised and has kubectl installed. It's in the same namespace as a persistent volume containing sensitive data. This persistent volume is only meant to be mounted by a different pod in that namespace. The attacker could…
Tyler Camp
  • 177
  • 15