-
Notifications
You must be signed in to change notification settings - Fork 14.7k
update kubernetes.io/os description as it can also be used in pod labels #40332
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
Conversation
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
|
||
The Kubelet populates this with `runtime.GOOS` as defined by Go. This can be handy if you are mixing operating systems in your cluster (for example: mixing Linux and Windows nodes). | ||
|
||
When the `kubernetes.io/os` label in Pod labels does not match the node label, the kubelet will not admit the pod. However, this is not taken into account by kube scheduler. |
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.
When the `kubernetes.io/os` label in Pod labels does not match the node label, the kubelet will not admit the pod. However, this is not taken into account by kube scheduler. | |
When the `kubernetes.io/os` label value for a Pod does not match the label value on a Node, | |
the kubelet on the node will not admit the Pod. However, this is not taken into account by | |
the kube-scheduler. |
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.
We might also want to link to https://kubernetes.io/docs/concepts/workloads/pods/#pod-os so that readers are aware that this label is one of two relevant mechanisms.
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.
I am unsure if this is the recommended approach.
We might also want to link to https://kubernetes.io/docs/concepts/workloads/pods/#pod-os so that readers are aware that this label is one of two relevant mechanisms.
The Pod OS field seems an alternative way for the pod os label.
I guess this should have a tech review. @pacoxu, who can confirm this revision? |
/cc @ravisantoshgudimetla @jsturtevant
kubernetes/kubernetes#104613 this was added in v1.23. I cannot find anywhere that is using this label in pod. |
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.
/lgtm
as is
Some ideas.
LGTM label has been added. Git tree hash: 2fe280825c1400046b6fc6cbf5739f752a91987b
|
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.
/lgtm
LGTM label has been added. Git tree hash: 835b6bf2d89cd4a1f65d872c03c1660088e53e64
|
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.
/lgtm
/assign @sftim |
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.
LGTM from me!
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim 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 |
/retitle update kubernetes.io/os description as it can also be used in pod labels |
kubernetes.io/os
description as it can also be used in pod labels
When I review kubernetes/kubernetes#116892, I find that no document has mentioned it.