add: the doc for matchLabelKeys/mismatchLabelKeys in pod (anti)affinity#43812
Conversation
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
|
/sig scheduling |
sftim
left a comment
There was a problem hiding this comment.
Thanks. Here's some more feedback to help get this PR ready to merge.
| labelSelector: | ||
| matchExpressions: | ||
| - key: tenant | ||
| operator: Exists |
There was a problem hiding this comment.
What's this labelSelector for?
There was a problem hiding this comment.
So, it narrows down the scope of this pod anti affinity, otherwise this Pod will hate Pods from daemonsets as well, for example.
There was a problem hiding this comment.
otherwise this Pod will hate Pods from daemonsets as well, for example.
Wait, will it? I have to check if NotIn operator matches with the Pods which doesn't have the label in the first place.
There was a problem hiding this comment.
Confirmed it will. So, in this usecase, this labelSelector is necessary to exclude Pods which aren't supposed to have tenant label (daemonsets)
There was a problem hiding this comment.
Don't just tell the reviewers - you need to explain it (at least a little) to readers as well.
|
Thanks all. I fixed them based on your all reviews. |
sftim
left a comment
There was a problem hiding this comment.
Thanks.
This looks ready for tech review (SIG Scheduling).
Princesso
left a comment
There was a problem hiding this comment.
Thanks for all the hard work @sanposhiho ! There are a few new comments. As soon as you're done fixing them, this PR is good to move to the next stage.
|
I see a commit with the latest changes. Thank you! |
|
@alculquicondor Thanks, done based on your reviews. |
|
LGTM label has been added. DetailsGit tree hash: 69b1a0fa4cced737d0af49db61ff9f19786be7aa |
|
/label tide/merge-method-squash |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
add the doc for matchLabelKeys/mismatchLabelKeys in pod (anti)affinity
ref: kubernetes/enhancements#3633