-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix: safely reset k8s without breaking SSH connection 🐛 #12232
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
base: master
Are you sure you want to change the base?
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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 kubernetes-sigs/prow repository. |
The committers listed above are authorized under a signed CLA. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: venom90 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @venom90! |
Hi @venom90. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes-sigs/prow repository. |
/ok-to-test
Please drop the whitespace only changes though.
|
The YAML formatter removed the extra spaces, didn't added any. |
The YAML formatter remove the extra spaces, didn't added any.
![]() Hum, this does not happen when I ran pre-commit run, and the version are fixed in the config file so I'm not sure how that would happen. Regardless, please drop them.
|
Regarding the content, why the need for for shell that way ? |
You're not actually doing that expect the third item, maybe you forgot to commit ? |
Okay, I'll check and re-commit. Thanks. |
Okay, let me fix it. |
/kind bug
What this PR does / why we need it:
This PR modifies the reset.yml task to preserve SSH connectivity during iptables cleanup operations. Currently, when the reset task flushes iptables rules, it can terminate the admin's SSH session, making the server inaccessible and leaving the reset process in an incomplete state.
The modifications:
Which issue(s) this PR fixes:
NA
Special notes for your reviewer:
This is a common operational problem when administrators run
reset.yml
and suddenly lose access to their servers. The change has been tested on multiple environments to ensure it preserves connectivity while still thoroughly cleaning up Kubernetes components.Does this PR introduce a user-facing change?: