Include Pod OS field

Include Pod OS field in the pod concepts.
pull/35985/head
Ravi Gudimetla 2022-08-15 12:17:40 -04:00 committed by ravisantoshgudimetla
parent dd543e5c80
commit 5206c7f1d9
1 changed files with 17 additions and 0 deletions

View File

@ -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
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