Kubernetes: How to resize a Persistent Volume?

0 votes

I'm trying to run a SQL deployment on kubernetes but the persistent volume I used is already full. I want to expand its storage but don't know how? The claim seems immutable. But I can create a new claim if there was any way I could resize the PV.

Jan 22 in Kubernetes by shubham
• 6,870 points
188 views

1 answer to this question.

0 votes

It is actually possible to do that in the newer versions of Kuberenetes. I think it started from v1.9 onwards.

Check: https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/

For your PVC edit the PVC size using:

kubectl edit pvc <PVCname>

Now delete the pods associated with volume. The newly created pods will have access to the expanded storage.

answered Jan 22 by ajs3033
• 7,240 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

How to build a high availability cluster in Kubernetes?

Add nodes in a HA cluster in ...READ MORE

answered 6 days ago in Kubernetes by Sirajul
• 5,560 points
22 views
0 votes
1 answer

Kubernetes: Can we use multiple claims out of a persistent volume?

The mapping between persistentVolume and persistentVolumeClaim is ...READ MORE

answered 2 days ago in Kubernetes by Sirajul
• 5,560 points
12 views
0 votes
1 answer

how to package a kubernetes application?

Helm is a package manager which allows users ...READ MORE

answered 1 day ago in Kubernetes by Sirajul
• 5,560 points
12 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
1,114 views
+3 votes
1 answer
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,240 points
251 views
0 votes
1 answer