website/content/zh-cn/docs/reference/command-line-tools-reference/feature-gates/identify-pod-os.md

36 lines
896 B
Markdown

---
# Removed from Kubernetes
title: IdentifyPodOS
content_type: feature_gate
_build:
list: never
render: false
stages:
- stage: alpha
defaultValue: false
fromVersion: "1.23"
toVersion: "1.23"
- stage: beta
defaultValue: true
fromVersion: "1.24"
toVersion: "1.24"
- stage: stable
defaultValue: true
fromVersion: "1.25"
toVersion: "1.26"
removed: true
---
<!--
Allows the Pod OS field to be specified. This helps in identifying
the OS of the pod authoritatively during the API server admission time.
In Kubernetes {{< skew currentVersion >}}, the allowed values for the `pod.spec.os.name`
are `windows` and `linux`.
-->
允许设置 Pod 的 `os` 字段。这有助于在 API 服务器准入时确定性地辨识 Pod 的 OS。
在 Kubernetes {{< skew currentVersion >}} 中,`pod.spec.os.name` 的允许值为
`windows``linux`