Skip to content

Commit 3527ccd

Browse files
committed
update kubernetes.io/os description as it can also be used in pod labels
1 parent 768d6ae commit 3527ccd

File tree

1 file changed

+7
-1
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+7
-1
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,16 @@ The Kubelet populates this with `runtime.GOARCH` as defined by Go. This can be h
116116

117117
Example: `kubernetes.io/os: "linux"`
118118

119-
Used on: Node
119+
Used on: Node, Pod
120120

121121
The Kubelet populates this with `runtime.GOOS` as defined by Go. This can be handy if you are mixing operating systems in your cluster (for example: mixing Linux and Windows nodes).
122122

123+
When the `kubernetes.io/os` label value for a Pod does not match the label value on a Node,
124+
the kubelet on the node will not admit the Pod. However, this is not taken into account by
125+
the kube-scheduler. Alternatively, the kubelet refuses to run a Pod where you have specified a Pod OS, if
126+
this isn't the same as the operating system for the node where that kubelet is running. Just
127+
look for [Pods OS](/docs/concepts/workloads/pods/#pod-os) for more details.
128+
123129
### kubernetes.io/metadata.name
124130

125131
Example: `kubernetes.io/metadata.name: "mynamespace"`

0 commit comments

Comments
 (0)