Skip to content

fix: set K8s deployment strategy to Recreate #10321

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

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

ericpaulsen
Copy link
Member

@ericpaulsen ericpaulsen commented Oct 17, 2023

this PR sets spec.strategy.type to Recreate on the K8s deployments templates. this change means all existing pods in the deployment are killed before new ones are created, preventing any MultiAttach errors on the PVC during a workspace rebuild.

a large customer experienced the error due to the K8s default strategy of RollingUpdate, which waits for new deployment pods to be Running prior to taking down the old pods.

@ericpaulsen ericpaulsen requested review from matifali and bpmct October 17, 2023 20:46
@ericpaulsen ericpaulsen self-assigned this Oct 17, 2023
@ericpaulsen ericpaulsen changed the title fix: set K8s deployment strategy to Recreate fix: set K8s deployment strategy to Recreate Oct 17, 2023
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. This will certainly fix the issue.

@ericpaulsen ericpaulsen enabled auto-merge (squash) October 17, 2023 20:50
@ericpaulsen ericpaulsen merged commit 09d995c into main Oct 17, 2023
@ericpaulsen ericpaulsen deleted the k8s-deployment-strategy branch October 17, 2023 21:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants