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

chore: change updateStrategy of the server and the registry #1000

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

SdgJlbl
Copy link
Contributor

@SdgJlbl SdgJlbl commented Sep 12, 2024

Fixes FL-1733

Server and registry pods should no longer hang in pending because of race condition on RWO PVC.

Untested yet.

@SdgJlbl SdgJlbl requested a review from a team as a code owner September 12, 2024 16:01
Copy link
Contributor

@thbcmlowk thbcmlowk left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines 15 to 16
strategy:
type: Recreate
Copy link
Contributor

Choose a reason for hiding this comment

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

Wdyt of adding the field in the values file (just like the registry):

Suggested change
strategy:
type: Recreate
strategy:
type: {{ .Values.server.updateStrategy }}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can make it configurable through the values if you think it's cleaner, I don't see any case where we wouldn't want to use the Recreate strategy since it's blocking the deployment because of the shared RWO PVC.
For the registry, we use an external chart, so we have to configure it through values.
No strong opinion in either direction though.

Signed-off-by: SdgJlbl <sarah.diot-girard@owkin.com>
@guilhem-barthes
Copy link
Contributor

The default value seems to be Recreate, what this PR is changing?

@SdgJlbl
Copy link
Contributor Author

SdgJlbl commented Sep 13, 2024

The default value seems to be Recreate, what this PR is changing?

Default is RollingUpdate https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy

Copy link
Contributor

@thbcmlowk thbcmlowk left a comment

Choose a reason for hiding this comment

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

Thank you for updating 🙏

@SdgJlbl SdgJlbl merged commit 37c437d into main Sep 13, 2024
10 checks passed
@SdgJlbl SdgJlbl deleted the chore/change-updateStrategy branch September 13, 2024 13:40
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.

3 participants