Skip to content

Commit d0e8123

Browse files
authored
Update security-context.md
Fixed translation errors. Translate override to `重写` rather than `重载`. Avoid the confusion of override and overload, and cause misunderstanding.
1 parent 8dd01dd commit d0e8123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh-cn/docs/tasks/configure-pod-container/security-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ and the Container have a `securityContext` field:
367367
字段。`securityContext` 字段的取值是一个
368368
[SecurityContext](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#securitycontext-v1-core)
369369
对象。你为 Container 设置的安全性配置仅适用于该容器本身,并且所指定的设置在与
370-
Pod 层面设置的内容发生重叠时,会重载后者。Container 层面的设置不会影响到 Pod 的卷。
370+
Pod 层面设置的内容发生重叠时,会重写Pod层面的设置。Container 层面的设置不会影响到 Pod 的卷。
371371

372372
下面是一个 Pod 的配置文件,其中包含一个 Container。Pod 和 Container 都有
373373
`securityContext` 字段:
@@ -416,7 +416,7 @@ of `runAsUser` specified for the Container. It overrides the value 1000 that is
416416
specified for the Pod.
417417
-->
418418
输出显示进程以用户 2000 运行。该值是在 Container 的 `runAsUser` 中设置的。
419-
该设置值重载了 Pod 层面所设置的值 1000。
419+
该设置值重写了 Pod 层面所设置的值 1000。
420420

421421
```
422422
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND

0 commit comments

Comments
 (0)