-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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 priorityClassName typo, add numeric priority to static pods #89970
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -7,7 +7,8 @@ metadata: | |||
seccomp.security.alpha.kubernetes.io/pod: 'docker/default' | |||
component: konnectivity-server | |||
spec: | |||
priorityClassName: system-cluster-critical | |||
priorityClassName: system-node-critical |
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.
cc @caesarxuchao, since this is using UDS, it needs to run on this node (can't be rescheduled to another node)
/assign @dchen1107 |
We discussed at SIG Node last year, and I documented the conclusion at: #80203 (comment) Per our discussion, the system should treat all static pods as the critical pods blindly. If I remembered it correctly, the fix was cherrypicked to 1.15. I am wondering if some part of the system didn't agree with that decision? |
/lgtm cc/ @dashpole for another look too. |
I see the change made in #80491. I don't see it picked to 1.16.
Critical pods can have different priorities, and the kubelet will preempt ones with lower priority values. Because the static control plane pods did not specify a numeric priority, they were subject to preemption by a cluster-critical pod. |
/hold for @dashpole to take a look |
/priority important-soon |
/lgtm |
/hold cancel |
…0-upstream-release-1.16 Automated cherry pick of #89970: Fix priorityClass typo, add numeric priority to static pods
…0-upstream-release-1.18 Automated cherry pick of #89970: Fix priorityClass typo, add numeric priority to static pods
…0-upstream-release-1.17 Automated cherry pick of #89970: Fix priorityClass typo, add numeric priority to static pods
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes typo in static pod manifests, adds numeric priority to ensure relative preemption works properly.
Which issue(s) this PR fixes:
xref #89966
Special notes for your reviewer:
Fixes regression introduced in 1.16 when all static pods were made critical
Does this PR introduce a user-facing change?:
/sig cluster-lifecycle
/sig node