Skip to content

[DT-723] fix: Recreate rollout so the backend's RWO volume can transfer - #46

Open
devajipatil wants to merge 32 commits into
developfrom
feature/backend-rollout-strategy
Open

[DT-723] fix: Recreate rollout so the backend's RWO volume can transfer#46
devajipatil wants to merge 32 commits into
developfrom
feature/backend-rollout-strategy

Conversation

@devajipatil

Copy link
Copy Markdown
Collaborator

What
Sets the backend Deployment's rollout strategy to Recreate instead of the default RollingUpdate, and makes the strategy configurable through backend.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:

Failed to load logs: container "edc-management-console" in pod "emc-backend-655f5fcc7d-cc8np"
is waiting to start: ContainerCreating
Reason: BadRequest (400)
Every backend redeploy currently needs a manual scale --replicas=0 / --replicas=1 to get through. A single-replica Deployment holding a RWO volume should not use RollingUpdate.

How
File | Change -- | -- templates/deployment-backend.yaml | {{- with .Values.backend.strategy }} block rendering spec.strategy, matching the existing nodeSelector / affinity pattern (key at column N, nindent N+2) values.yaml | backend.strategy.type: Recreate + a comment explaining why not RollingUpdate Chart.yaml | 3.15.0 → 3.16.0; removed a trailing-whitespace line at EOF
13 insertions, 2 deletions. The Chart.yaml changes are not cosmetic — ct lint fails a modified chart at an unchanged version, and yamllint (ct's lintconf.yaml) treats the trailing whitespace and missing final newline as errors.

github-actions and others added 27 commits August 6, 2026 12:00
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@devajipatil devajipatil changed the title [DT-723] fix: Recreate rollout so the backend's RWO volume can transfer- #45 #45 [DT-723] fix: Recreate rollout so the backend's RWO volume can transfer Aug 20, 2026
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.

1 participant