File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
content/en/docs/concepts/workloads/pods Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,23 @@ it is deleted.
138
138
When you create the manifest for a Pod object, make sure the name specified is a valid
139
139
[ DNS subdomain name] ( /docs/concepts/overview/working-with-objects/names#dns-subdomain-names ) .
140
140
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
+
141
158
### Pods and controllers
142
159
143
160
You can use workload resources to create and manage multiple Pods for you. A controller
You can’t perform that action at this time.
0 commit comments