-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Got target node name of pending DaemonSet pod. #61387
Conversation
/assign @janetkuo |
There's a race condition that: after DaemonSet controller created the pods, scheduler takes time to bind the pod to the node; if node condition was changed (e.g. label updated) during this period, a new pod was created unexpected. Refer to the following log, thousands of pods was created :(
|
Why is the daemonset creating pods that are sensitive to node label changes? |
|
||
for _, term := range terms { | ||
for _, exp := range term.MatchExpressions { | ||
if exp.Key == kubeletapis.LabelHostname && |
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.
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.
opened #61410 to track
DaemonSet will create pods to the selected nodes, one of selection is node selector for node labels; so if label of node changed, DaemonSet controller should delete or create pods accordingly. |
1 similar comment
DaemonSet will create pods to the selected nodes, one of selection is node selector for node labels; so if label of node changed, DaemonSet controller should delete or create pods accordingly. |
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: k82cn Assign the PR to them by writing 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 |
/sig scheduling |
Thanks for liggitt@ 's comments, I'll continue this PR after #61410 merged :) |
Handled this in #63223 :) |
Signed-off-by: Da K. Ma klaus1982.cn@gmail.com
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):part of #59194 Fixes #61050
Release note: