Skip to content

Commit 3a6b036

Browse files
committed
Clarify what .spec.os.name constrains in the Pod OS section
The section recommended setting .spec.os.name and then said the value does not affect scheduling, which read as a contradiction: it was not clear what setting the field actually does. Say that the kubelet refuses to run a Pod whose .spec.os.name does not match the node, so the recommendation and the scheduling caveat no longer appear to conflict. The kubelet behaviour is already documented under the kubernetes.io/os label, which links here for details. Also align the opening sentence with the Windows user guide, which describes the field in terms of the containers rather than the node.
1 parent 5e1d1bd commit 3a6b036

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • content/en/docs/concepts/workloads/pods

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,13 @@ the name should follow the more restrictive rules for a
126126

127127
{{< feature-state state="stable" for_k8s_version="v1.25" >}}
128128

129-
You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the OS on
130-
which you want the pod to run. These two are the only operating systems supported for now by
131-
Kubernetes. In the future, this list may be expanded.
129+
You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the
130+
operating system that the containers in that Pod require. These two are the only operating
131+
systems supported for now by Kubernetes. In the future, this list may be expanded.
132132

133-
In Kubernetes v{{< skew currentVersion >}}, the value of `.spec.os.name` does not affect
133+
The kubelet refuses to run a Pod if the value of `.spec.os.name` does not match the
134+
operating system of the node. However, in Kubernetes
135+
v{{< skew currentVersion >}}, the value of `.spec.os.name` does not affect
134136
how the {{< glossary_tooltip text="kube-scheduler" term_id="kube-scheduler" >}}
135137
picks a node for the Pod to run on. In any cluster where there is more than one operating system for
136138
running nodes, you should set the

0 commit comments

Comments
 (0)