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

CRDB-45670: helm: automate the statefulset update involving new PVCs #443

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

pritesh-lahoti
Copy link
Contributor

In scenarios where a new PVC is getting added to a statefulset as part of Helm upgrade, we need to perform the upgrade as per the below steps:
For every pod:

  1. delete the statefulset with --cascade=orphan
  2. delete the pod
  3. perform helm upgrade

This is required as we cannot attach a volume to an existing pod.

It is not reasonable to expect customers to manually perform these steps as part of their Helm upgrade, so we would like to offer a script which could automate the same and reduce friction for the customers.

scripts/upgrade_with_new_pvc.sh Outdated Show resolved Hide resolved
scripts/upgrade_with_new_pvc.sh Outdated Show resolved Hide resolved
@pritesh-lahoti pritesh-lahoti force-pushed the automate-ss-update branch 2 times, most recently from 5e4451a to 6444bc3 Compare January 16, 2025 10:18
@pritesh-lahoti pritesh-lahoti merged commit 78f480d into master Jan 16, 2025
9 checks passed
@pritesh-lahoti pritesh-lahoti deleted the automate-ss-update branch January 16, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants