Questions tagged [persistent-volumes]

21 questions
21
votes
3 answers

Permission denied within mounted volume inside Podman container

I am starting to learn about containers using podman that came with RHEL8.1 (which AFAIK can be used in place of docker), and have the following baby Dockerfile as a learning exercise: # Use Alpine Linux base image FROM alpine:latest # Install…
hpy
  • 601
  • 1
  • 4
  • 8
2
votes
0 answers

How do I use a raw volume with a database on Kubernetes?

I'm trying to figure out how to launch a web application in a Kubernetes cluster on AWS. Right now I'm not certain about a database. I can see that one can use raw block volumes, which are supposedly faster: This mode is useful to provide a Pod the…
2
votes
1 answer

Should we deploy Storage Class Per Application OR one Storage Class for All applications?

I am using aws-ebs-csi-driver on k8s for persistent volumes. I came across a scenario where I can create ebs storage class once and then use it across all the statefulsets deployments to create PersistentVolumeClaims. I am trying to weigh in…
SRJ
  • 133
  • 8
1
vote
1 answer

Interacting with a Trident container (NetApp) via CLI within a Openshift/Kubernetes cluster?

Background We're currently using NetApps Trident PV (Persistent Volume) orchestrator to dynamically create volumes on our NetApp ONTAP clusters for Pods running within our Openshift/Kubernetes environment. NOTE: See links in the references section…
slm
  • 232
  • 5
  • 13
1
vote
0 answers

What is the proper way to remove a locally bind-mounted volume on the host machine created by Docker Compose?

Problem I believe Docker Compose should be able to remove all volumes it creates because it seems easier and safer to do so. However, locally bind-mounted volumes on the host machine created by Docker Compose cannot be removed by Docker Compose, so…
1
vote
0 answers

CSI Driver: FSGroup mentioned in POD spec is not accessible from NodePublish volume

I am using volumeMountGroup := req.GetVolumeCapability().GetMount().GetVolumeMountGroup() klog.V(2).Infof("-NodePublishVolume-: volumeMountGroup: %v",volumeMountGroup) in my CSI NodePublishVolume method to access FSGroup mentioned in pod spec. My…
1
vote
2 answers

How to set correct mount permissions of Minikube grafana pod

I have a minikube cluster with a grafana pod running in it. I have mounted a directory for grafana to use as a persistant volume to store. minikube mount /var/tmp/minikube-folder1:/folder1 I receive the output Mounting host path…
Ryu S.
  • 111
  • 2
1
vote
1 answer

Deploying a statefulSet with static volume provisioning but controller insists to use dynamic

I am trying to deploy a statefulSet that will use static volume provisioning (claim existing PVs) based on their label. However, it seems that the persistentvolume-controller is trying to provision storage dynamically, as when I kubectl desribe pvc…
maze
  • 162
  • 1
  • 8
1
vote
1 answer

Can't get either Postgres permissions or PVC working in AKS

These are pretty much the steps I have followed in order. Basically what is outlined in the documentation: https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv azure-storage-claim.yaml kind: StorageClass apiVersion:…
0
votes
1 answer

Will data contained withing Persistent Volume survive cluster deletion?

I have a Kubernetes cluster based on 3 hosts managed via Rancher I've created Persistent Volume on the first host and use it via a claim by a PostgreSQL pod. My app is generating and storing there some data. Kubernetes docs state that "Persistent…
0
votes
0 answers

Kubernetes: PV will not bind to PVC despite identical attributes to a PV that will

Basic Setup: AWS EKS Cluster AWS EFS for volumes Jira Service Management Confluence I have a pod that needs two statically provisioned AWS EFS volumes attached to function. This is an instance of confluence that uses a volume each for the local…
0
votes
0 answers

Unexpected subPath Behavior in Kubernetes: Auto-Created Directories with Root Ownership and Permission Issues

I’m observing unexpected behavior when using subPath in a Kubernetes Pod’s volume mount. Pod Definition: apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers: - name: main-container image: busybox command: ["sh", "-c",…
0
votes
1 answer

Using Amazon EKS, all my pods on a single node can access the EBS volume on that node if I use ReadWriteOnce. But if I use EKS Auto Mode only one can

In summary, when using EKS with Auto Mode enabled and I create an EBS PV with access mode "ReadWriteOnce”… I EXPECT: that all pods on the EKS Node with the mounted EBS volume can access the (PersistentVolume) PV But ACTUALLY: only one out of the…
Seth E
  • 153
  • 5
0
votes
1 answer

Automatic volume migration following the pod

I have k8s test cluster with 1 master and 2 worker nodes. I created a PersistentVolumeClaim resource using the Hetzner Cloud csi driver. This driver only allows you to create ReadWriteOnce volumes. apiVersion: v1 kind:…
0
votes
0 answers

How to migrate a jiva volume replica from a cluster node to another?

I have a 4 nodes Kubernetes test cluster where we have installed openebs jiva as storage solution. I'm currently using a replica 3 configuration and I need to find a way to move one of the replicas from one node to another. This is necessary since…
1
2