You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
275
+
276
+
In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no
277
+
effect on {{< glossary_tooltip text="scheduling" term_id="kube-scheduler" >}} of the pods.
278
+
Setting the `.spec.os.name` helps to identify the pod OS
279
+
authoratitively and is used for validation. The kubelet refuses to run a Pod where you have
280
+
specified a Pod OS, if this isn't the same as the operating system for the node where
281
+
that kubelet is running.
282
+
The [Pod security standards](/docs/concepts/security/pod-security-standards/) also use this
283
+
field to avoid enforcing policies that aren't relevant to that operating system.
0 commit comments