How to resize PVC using Helm chart? #829
-
I tried simply editing config.jetstream.fileStore.pvc.size from 2Gi to 3Gi and running helm upgrade, but nothing is happening. I also tried scaling the nats statefulset down to 0, waiting for all the containers to terminate, PVC are not being resized. I know my storageClass supports resizing because I use it often with the postgres operator. And I have done a resize with nats once, from 1Gi to 2Gi, but it was a long time ago so I don't remember how I did it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's more of a Kubernetes limitation for resizing PVCs in a Stateful Set than anything. Easiest way is to leave the Stateful Set alone and resize the underlying disks to be the size that you want them to be. There are some hacks documented out there on Stack Overflow and the likes that involve force-deleting the Stateful Set and then re-applying it. I stay away from those though, force deleting Stateful Set that you don't actually want to delete sounds scary |
Beta Was this translation helpful? Give feedback.
-
Hello! It's My Solution :)
All working |
Beta Was this translation helpful? Give feedback.
It's more of a Kubernetes limitation for resizing PVCs in a Stateful Set than anything. Easiest way is to leave the Stateful Set alone and resize the underlying disks to be the size that you want them to be.
There are some hacks documented out there on Stack Overflow and the likes that involve force-deleting the Stateful Set and then re-applying it. I stay away from those though, force deleting Stateful Set that you don't actually want to delete sounds scary