[DT-723] fix: Recreate rollout so the backend's RWO volume can transfer - #45
Closed
devajipatil wants to merge 27 commits into
Closed
[DT-723] fix: Recreate rollout so the backend's RWO volume can transfer#45devajipatil wants to merge 27 commits into
devajipatil wants to merge 27 commits into
Conversation
…ement-console into feature/keycloak-bpn
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ement-console into feature/keycloak-bpn
…ement-console into feature/keycloak-bpn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sets the backend Deployment's rollout strategy to
Recreateinstead of the defaultRollingUpdate, and makes the strategy configurable throughbackend.strategy.Why
The backend keeps its sqlite database on a ReadWriteOnce PVC (
emc-1-pvc-emc-backend-data). RollingUpdate starts the replacement pod before terminating the outgoing one, so the new pod tries to attach a volume that is still exclusively attached to another node. It never starts:Every backend redeploy currently needs a manual
scale --replicas=0/--replicas=1to get through. A single-replica Deployment holding a RWO volume should not use RollingUpdate.How
13 insertions, 2 deletions. The
Chart.yamlchanges are not cosmetic —ct lintfails a modified chart at an unchanged version, andyamllint(ct'slintconf.yaml) treats the trailing whitespace and missing final newline as errors.