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

K8s StatfullSets "pending" after node scale

First of all: I readed other posts like this. My staging cluster is allocated on AWS using spot instances. I have arround 50+ pods (runing diferent services / products) and 6 StatefulSets. I created the StatefulSets this way: OBS: I do not have PVs…
2
votes
0 answers

Unable to remove PVC in Terraform

I'm trying to implement a PVC in Terraform resource "kubernetes_persistent_volume_claim" "nfs-claim" { metadata { name = "nfs-claim" } spec { access_modes = ["ReadWriteMany"] resources { requests = { storage =…
2
votes
1 answer

OpenShift single node PersistentVolume with hostPath requires privileged pods, how to set as default?

I am fairly new to OpenShift and have been using CRC (Code Ready Containers) for a little while, and now decided to install the single server OpenShift on bare metal using the Assisted-Installer method from…
xit
  • 135
  • 1
  • 12
2
votes
2 answers

How can I expand a PVC for Cassandra on AKS without losing data?

I need to start by saying that I have no experience using Cassandra and I am not the one who who created this deployment. I have Cassandra running in a cluster in AKS. The PVC as configured in the statefulset is 1000Gi. Currently the pods are out of…
2
votes
0 answers

Host Directory Not Showing Files From Kubernetes Persistent Volume Claim

I am migrating an application that consists of 1 or more tomcat servers and 1 or more wildfly servers to k8s. I have it up and working with a deployments for tomcat and wildfly with a clusterIP for each. I am now trying to combine log files from the…
Mike Rother
  • 591
  • 4
  • 16
2
votes
1 answer

How to replace the in-memory storage with persistent storage using kustomize

I'm trying to replace the in-memory storage of Grafana deployment with persistent storage using kustomize. What I'm trying to do is that I'm removing the in-memory storage and then mapping persistent storage. But When I'm deploying it then it is…
metadata
  • 1,139
  • 1
  • 7
  • 28
2
votes
1 answer

microk8s-hostpath does not create PV for a claim

I am trying to use Microk8s storage addon but my PVC and pod are stuck at pending and I don't know what is wrong. I am also using the "registry" addon which uses the storage and that one works without a problem. FYI: I already restarted the microk8s…
AVarf
  • 4,481
  • 9
  • 47
  • 74
2
votes
2 answers

Automated script to delete kubernetes pvc by labels AGE

I have a total of 2030 pvc's and I want to delete 2000 pvc's form them and keep the 30. Those 30 pvc's are latest and only less that 2 days old.. so that is why I do not want to delete them. The other all 2000 pvc are more than 2 days old. I want…
2
votes
0 answers

Kubernetes NFS PV: Lock reclaim failed

Configuration: NFS server and the k8s cluster(single node cluster) run on two machines and use the same OS and NFS software, as below: [root@test-2 ~]# yum info nfs-utils Failed to set locale, defaulting to C Loaded plugins: fastestmirror Loading…
gangkui2008
  • 157
  • 1
  • 3
  • 14
2
votes
1 answer

How can I calculate GKE PVC IOPS

https://cloud.google.com/compute/docs/disks/performance#machine-type-disk-limits This document show performance with different vCPU VM types. Where can I check this IOPS for PVC created by GKE?
nvcnvn
  • 4,991
  • 8
  • 49
  • 77
2
votes
1 answer

Kubernetes: 2 PVCs in 2 namespaces binding to the same PV, one successful, one failed

So I have 2 PVCs in 2 namespaces binding to 1 PV: The following are the PVCs: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-git namespace: mlo-dev labels: type: local spec: storageClassName: mlo-git volumeMode:…
2
votes
1 answer

how to find my persistent volume location

I tried creating persistent volume using the host path. I can bind it to a specific node using node affinity but I didn't provide that. My persistent volume YAML looks like this apiVersion: v1 kind: PersistentVolume metadata: name: jenkins …
thinkingmonster
  • 5,063
  • 8
  • 35
  • 57
2
votes
1 answer

Kubernetes automatically adds the storageClassName to PVC

I have a helm chart that contains PV and PVC to mount NFS volumes and this works fine. I need to install this helm chart on a new cluster that has very strict and limited security measures and I also see that my pods are pending because they can't…
AVarf
  • 4,481
  • 9
  • 47
  • 74
2
votes
0 answers

Kubernetes: How to move a pod to another node

I have a cluster with 2 nodes with local storage, I want to move a pod and its volume from node 1 to node 2, because the disk of node 1 is a little full. thanks
Khalil Meg
  • 731
  • 10
  • 14
2
votes
1 answer

Kubernetes Prevent PVC from being deleted with "Kubectl delete -f PVC_NAME"

Situation: I have a problem with my PVC. I need to use helm chart to update our monitoring. But we dont have tiller, so we have to use helm template for creating our yaml files, so that we are able to deploy it with kubectl. We need sometimes to…
goku736
  • 372
  • 2
  • 16