diff --git a/content/zh/docs/reference/using-api/server-side-apply.md b/content/zh/docs/reference/using-api/server-side-apply.md index aa0b3fef20..b2f44b83be 100644 --- a/content/zh/docs/reference/using-api/server-side-apply.md +++ b/content/zh/docs/reference/using-api/server-side-apply.md @@ -4,7 +4,7 @@ content_type: concept weight: 25 min-kubernetes-server-version: 1.16 --- - -{{< feature-state for_k8s_version="v1.16" state="beta" >}} +{{< feature-state for_k8s_version="v1.22" state="stable" >}} - 用户管理字段这件事,在服务器端应用的场景中,意味着用户依赖并期望字段的值不要改变。 最后一次对字段值做出断言的用户将被记录到当前字段管理器。 -这可以通过发送 `POST`、 `PUT`、 +这可以通过发送 `POST`、 `PUT`、 或非应用(non-apply)方式的 `PATCH` 等命令来修改字段值的方式实现, 或通过把字段放在配置文件中,然后发送到服务器端应用的服务端点的方式实现。 当使用服务器端应用,尝试着去改变一个被其他人管理的字段, 会导致请求被拒绝(在没有设置强制执行时,参见[冲突](#conflicts))。 - 并且,用户使用服务器端应用,像这样创建 Deployment: @@ -595,7 +595,7 @@ And the user has created the deployment using server side apply like so: kubectl apply -f https://k8s.io/examples/application/ssa/nginx-deployment.yaml --server-side ``` - 然后,为 Deployment 启用 HPA,例如: @@ -604,7 +604,7 @@ Then later, HPA is enabled for the deployment, e.g.: kubectl autoscale deployment nginx-deployment --cpu-percent=50 --min=1 --max=10 ``` - 用户使用名为 `handover-to-hpa` 的字段管理器,应用此配置文件。 @@ -655,7 +655,7 @@ kubectl apply -f https://k8s.io/examples/application/ssa/nginx-deployment-replic --validate=false ``` - -## 禁用此功能 {#disabling-the-feature} - -服务器端应用是一个 Beta 版特性,默认启用。 -要关闭此[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates), -你需要在启动 `kube-apiserver` 时包含参数 `--feature-gates ServerSideApply=false`。 -如果你有多个 `kube-apiserver` 副本,它们的标志设置应该都相同。 -