-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Include Pod OS field #35985
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
Include Pod OS field #35985
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,6 +138,23 @@ it is deleted. | |
| When you create the manifest for a Pod object, make sure the name specified is a valid | ||
| [DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names). | ||
|
|
||
| ### Pod OS | ||
|
|
||
| {{< feature-state state="stable" for_k8s_version="v1.25" >}} | ||
|
|
||
| You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the OS on | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like that we're making a recommendation. It's more than “there's this field, you could use it if you like”; now the field is GA, it's “you ought to set this field”. If we had the capacity it'd be nice to show a sample webhook that produces a Warning when you don't set that for a Pod / pod template.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that there's
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We can do that but it is left to the user as an exercise since the use-cases may differ. |
||
| which you want the pod to run. These two are the only operating systems supported for now by | ||
| Kubernetes. In future, this list may be expanded. | ||
|
|
||
| In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no | ||
| effect on {{< glossary_tooltip text="scheduling" term_id="kube-scheduler" >}} of the pods. | ||
| Setting the `.spec.os.name` helps to identify the pod OS | ||
| authoratitively and is used for validation. The kubelet refuses to run a Pod where you have | ||
| specified a Pod OS, if this isn't the same as the operating system for the node where | ||
| that kubelet is running. | ||
| The [Pod security standards](/docs/concepts/security/pod-security-standards/) also use this | ||
| field to avoid enforcing policies that aren't relevant to that operating system. | ||
|
|
||
| ### Pods and controllers | ||
|
|
||
| You can use workload resources to create and manage multiple Pods for you. A controller | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.