-
Notifications
You must be signed in to change notification settings - Fork 803
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
Dashboard rwo pvc restart #3972
Dashboard rwo pvc restart #3972
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Welcome @torbendury! |
2801e11
to
93dafc8
Compare
Signed-off-by: Torben Dury <torbendury@googlemail.com>
Signed-off-by: Torben Dury <torbendury@googlemail.com>
93dafc8
to
fbfa5eb
Compare
Apparently it's not that easy to sign-off commits using GitHub Desktop, anyway I was able to force push over my mistake. Open for comments/review! |
Ah, I'm also facing this problem before. The GitHub desktop lacks sign-off commits support. :( |
Are those failing checks related to my PR? I took a quick look but they don't really seem to correlate imho |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this solution of setting the strategy to type: Recreate
because real-time availability of the dashboard is not so critical.
We can also make a separate option for ReadWriteOnce
PV or PVC, like:
strategy:
{{- if eq .Values.dashboard.persistentVolume.accessModes "ReadWriteOnce" }}
type: Recreate
{{- else }}
# ...
I think both are fine. What do you think? @STRRL
@torbendury It can be said to be irrelevant. These errors are not about the charts themselves, they are just used to prevent some omissions (because of the need to synchronize the chart's changes to Run |
I also thought of making it depending on the accessMode of the PVC itself, but it is (at least at the moment!) hardcoded here by the Helm Chart itself, if I didn't overlook anything |
Signed-off-by: Torben Dury <torbendury@googlemail.com>
Good catch! Then I think about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 83b4cb9
|
@torbendury: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
In response to a cherrypick label: new pull request created to branch |
* This is an automated cherry-pick of #3972 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> * Update CHANGELOG.md --------- Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Co-authored-by: Torben Dury <94752317+torbendury@users.noreply.github.com> Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
What problem does this PR solve?
Close #3876
What's changed and how it works?
I have changed the dashboards
updateStrategy
. The PersistentVolumeClaim for the dashboard is created with the accessModeReadWriteOnce
, which does not allow the dashboard to do a rolling restart because the blue version of the dashboard won't be shutdown until the green version is up and running.This lead to problems when doing a
kubectl rollout-restart deployment chaos-dashboard
because the new dashboard Pod could not mount the PVC.Related changes
UI interface
Checklist
CHANGELOG
CHANGELOG.md
Tests
steps:
helm install
commandSide effects
DCO
If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it: