-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix #9696 - apiserver outage when replacing or scaling control plane nodes #9701
Conversation
|
Hi @holmesb. 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/test-infra repository. |
Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages. The list of commits with invalid commit messages:
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/test-infra repository. I understand the commands that are listed here. |
3b858f1
to
d56fa4c
Compare
Fixed author\CLA. |
CI has a "command-instead-of-module" Ansible lint error because I'm using sed & curl instead of lineinfile & uri. But we must query the local endpoint (127.0.0.1/healthz) before moving onto the next CP node (apiserver static pod). Can't use throttle at the block level, otherwise I'd couple a lineinfile with a uri task. Open to suggestions. Maybe I should split this into its own play, then I could use serial. Or can we just ignore this lint error? |
ignoring the error is fine for this case I'd say, as long as there is a valid reason it's fine for me |
Any news with this one @cyclinder @jayonlau? Be good to avoid downtime everytime control plane nodes are changed. Are no breaking changes. |
Any news with this pls @floryut ? K8s API server going offline every CP change isn't exactly "Production Ready". I'd like to avoid having to add this as a patch to Kubespray every release\build. |
The ansible lint message? I thought you said "ignoring the error is fine for this case I'd say". We're already using sed & curl elsewhere in this repo, so I can't envisage any issues. |
Yes, ignoring the error, meaning adding a noqa in the code on this specific line 😄 |
07f3f96
to
5800a7c
Compare
|
5800a7c
to
6d1a5c1
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: holmesb 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 |
6470788
to
0f65697
Compare
|
edbfc11
to
bad2f15
Compare
Passing CI now @floryut |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Can you rebase off head? |
… of all at once when there are etcd node changes. Retain the faster, old method for use by non-HA apiserver. No longer change running apiserver static pod if only the order of etcd servers have changed.
bad2f15
to
646bc92
Compare
Keywords which can automatically close issues and at(@) mentions are not allowed in the title of a Pull Request. You can edit the title by writing /retitle in a comment.
When GitHub merges a Pull Request, the title is included in the merge commit. To avoid invalid keywords in the merge commit, please edit the title of the PR.
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/test-infra repository. I understand the commands that are listed here. |
Done @jcpunk |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
IMO, we should just revert #8253 instead. It's documented here that scale.yml it not intended for control-plane components, and you should use cluster/upgrade-cluster. |
I think this has been fixed by the linked PR above, so we'll close that. |
@VannTen: Closed this PR. In response to this:
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/test-infra repository. |
PR needs rebase. 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/test-infra repository. |
Fixed by bouncing apiserver static pods sequentially instead of all at once when there are etcd node changes. Retain the faster, old method for use by non-HA apiserver.
No longer change running apiserver static pods (and restart them) if only the order of etcd servers have changed.
What this PR does / why we need it:
Fixes loss of apiserver when are etcd nodes are scaled, or CP1 is replaced.
Which issue(s) this PR fixes:
Fixes #9696
Does this PR introduce a user-facing change?:
NONE