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

bug: Cannot expand persistent volume without recreating the stateful set. #1917

Open
tiny-pangolin opened this issue Jan 10, 2025 · 2 comments

Comments

@tiny-pangolin
Copy link

Chart name and version
chart: victoria-logs-single
version: v0.8.12

Describe the bug
Currently, it is not possible to resize the persistent volume without recreating the stateful set. Is it possible to allow expanding the volume without having to recreate the stateful set?

Custom values
Please provide only custom values (excluding default ones):
N/A

@AndrewChubatiuk
Copy link
Collaborator

AndrewChubatiuk commented Jan 10, 2025

it's not possible. consider using deployment mode instead .Values.statefulSet.enabled: false

@Haleygo
Copy link
Contributor

Haleygo commented Jan 15, 2025

it's not possible

@tiny-pangolin It's not possible cause volumeClaimTemplates in statefulsetSpec is an immutable field.
As a workaround, users can manually delete the StatefulSet using kubectl delete statefulset NAME --cascade=orphan, which deletes the StatefulSet while leaving the pod intact. Then update the chart to create the statefulset with new volumeClaimTemplates to "reuse" the pod.
In deployment mode, there is no volumeClaimTemplates, so pvc can be updated freely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants