Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way of expanding a volume using helm chart #8545

Open
ammirator-administrator opened this issue May 10, 2024 · 1 comment
Open

Correct way of expanding a volume using helm chart #8545

ammirator-administrator opened this issue May 10, 2024 · 1 comment
Labels
kind/improvement Request for improvement of existing function require/backport Require backport. Only used when the specific versions to backport have not been definied. require/doc Require updating the longhorn.io documentation require/manual-test-plan Require adding/updating manual test cases if they can't be automated

Comments

@ammirator-administrator

What I'm interested in is how to expand a volume which was created using a helm chart and is a statefulset
And that without UI, just to have the process automated without much manuall interaction
What I tried is:

  • Delete statefulset
  • increase the size in the helm chart (Using bitnami/postgres)
  • and apply the changes

Now the statefullset is recreated but the value remains the old one 8Gi but not updated one 10Gi
What are the correct way to do that with longhorn? In the UI the size doesn't change for some reason

@ammirator-administrator ammirator-administrator added kind/improvement Request for improvement of existing function require/backport Require backport. Only used when the specific versions to backport have not been definied. require/doc Require updating the longhorn.io documentation require/manual-test-plan Require adding/updating manual test cases if they can't be automated labels May 10, 2024
@ammirator-administrator
Copy link
Author

After some research I think I come up with a solution but I want to validate that with some longhorn expert and see if that is the correct way:

  • Scale down the pods using the volume
  • delete the statefulset
  • update the size value in helm chart, and edit needed pvc using kubectl edit pvc command with the same value as in helm chart
  • Run helm install, this will recreate the satefullset and start the pods back, and use the same pvc/pv buth with the expanded size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Request for improvement of existing function require/backport Require backport. Only used when the specific versions to backport have not been definied. require/doc Require updating the longhorn.io documentation require/manual-test-plan Require adding/updating manual test cases if they can't be automated
Projects
Development

No branches or pull requests

1 participant