Skip to content

Commit 51b647b

Browse files
authored
Merge pull request #35985 from ravisantoshgudimetla/pod-os
Include Pod OS field
2 parents dfd0880 + 84da6bb commit 51b647b

File tree

1 file changed

+17
-0
lines changed
  • content/en/docs/concepts/workloads/pods

1 file changed

+17
-0
lines changed

content/en/docs/concepts/workloads/pods/_index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,23 @@ it is deleted.
138138
When you create the manifest for a Pod object, make sure the name specified is a valid
139139
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
140140

141+
### Pod OS
142+
143+
{{< feature-state state="stable" for_k8s_version="v1.25" >}}
144+
145+
You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the OS on
146+
which you want the pod to run. These two are the only operating systems supported for now by
147+
Kubernetes. In future, this list may be expanded.
148+
149+
In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no
150+
effect on {{< glossary_tooltip text="scheduling" term_id="kube-scheduler" >}} of the pods.
151+
Setting the `.spec.os.name` helps to identify the pod OS
152+
authoratitively and is used for validation. The kubelet refuses to run a Pod where you have
153+
specified a Pod OS, if this isn't the same as the operating system for the node where
154+
that kubelet is running.
155+
The [Pod security standards](/docs/concepts/security/pod-security-standards/) also use this
156+
field to avoid enforcing policies that aren't relevant to that operating system.
157+
141158
### Pods and controllers
142159

143160
You can use workload resources to create and manage multiple Pods for you. A controller

0 commit comments

Comments
 (0)