From 54896f9414ac5dad43a06d131dfbfe9639095396 Mon Sep 17 00:00:00 2001 From: windsonsea Date: Mon, 30 Jan 2023 09:13:14 +0800 Subject: [PATCH] [zh] sync /using-api/server-side-apply.md --- .../reference/using-api/server-side-apply.md | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/content/zh-cn/docs/reference/using-api/server-side-apply.md b/content/zh-cn/docs/reference/using-api/server-side-apply.md index 288b49ce43e..8fe599fba31 100644 --- a/content/zh-cn/docs/reference/using-api/server-side-apply.md +++ b/content/zh-cn/docs/reference/using-api/server-side-apply.md @@ -645,7 +645,25 @@ First, the user defines a new configuration containing only the `replicas` field 首先,用户新定义一个只包含 `replicas` 字段的配置文件: -{{< codenew file="application/ssa/nginx-deployment-replicas-only.yaml" >}} +```yaml +# 将此文件另存为 'nginx-deployment-replicas-only.yaml' +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment +spec: + replicas: 3 +``` + +{{< note >}} + +此场景中针对 SSA 的 YAML 文件仅包含你要更改的字段。 +如果只想使用 SSA 来修改 `spec.replicas` 字段,你无需提供完全兼容的 Deployment 清单。 +{{< /note >}}