diff --git a/content/zh-cn/docs/reference/glossary/statefulset.md b/content/zh-cn/docs/reference/glossary/statefulset.md index e94318e78a..de43a53988 100644 --- a/content/zh-cn/docs/reference/glossary/statefulset.md +++ b/content/zh-cn/docs/reference/glossary/statefulset.md @@ -14,13 +14,12 @@ tags: --- 和 {{< glossary_tooltip text="Deployment" term_id="deployment" >}} 类似, diff --git a/content/zh-cn/docs/reference/kubectl/conventions.md b/content/zh-cn/docs/reference/kubectl/conventions.md index 2f6cc0f190..1f67fdb282 100644 --- a/content/zh-cn/docs/reference/kubectl/conventions.md +++ b/content/zh-cn/docs/reference/kubectl/conventions.md @@ -46,16 +46,20 @@ For a stable output in a script: ## 子资源 {#subresources} -* 你可以将 `--subresource` alpha 标志用于 kubectl 命令,例如 `get`、`patch`、`edit` 和 `replace` +* 你可以将 `--subresource` Beta 标志用于 kubectl 命令,例如 `get`、`patch`、`edit` 和 `replace` 来获取和更新所有支持子资源的资源的子资源。目前,仅支持 `status` 和 `scale` 子资源。 + * 对于 `kubectl edit`,不支持 `scale` 子资源。如果将 `--subresource` 与 `kubectl edit` 一起使用, + 并指定 `scale` 作为子资源,则命令将会报错。 * 针对子资源的 API 协定与完整资源相同。在更新 `status` 子资源为一个新值时,请记住, 子资源可能是潜在的由控制器调和为不同的值。