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,500 points
109 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,040 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

How can I access a service installed on Kubernetes from anywhere?

I have followed the link which you have ...READ MORE

answered Jul 23, 2018 in Kubernetes by Atul
• 10,200 points
72 views
0 votes
1 answer

Not able to access kubernetes api from a pod in azure

Follow these steps Add --bind-address=0.0.0.0 option to the line https://github.com/kubernetes/kubernetes/blob/v1.2.0/docs/getting-started-guides/coreos/azure/cloud_config_templates/kubernetes-cluster-main-nodes-template.yml#L218  Created ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 35,800 points
30 views
0 votes
1 answer

image can't be pulled error when I try to pull a docker image - kubernetes

I think the image is being pulled ...READ MORE

answered Sep 4, 2018 in Kubernetes by Kalgi
• 35,800 points
189 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
484 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,040 points
168 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.