You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page shows how to enable and use the `RunAsUserName` feature for pods and containers that will run on Windows nodes. This feature is meant to be the Windows equivalent of the Linux-specific `runAsUser` feature, allowing users to run the container entrypoints with a different username that their default ones.
18
+
This page shows how to use the `runAsUserName` setting for Pods and containers that will run on Windows nodes. This is roughly equivalent of the Linux-specific `runAsUser` setting, allowing you to run applications in a container as a different username than the default.
19
19
-->
20
-
本页展示如何为运行在 Windows 节点上的 pod 和容器启用并使用 `RunAsUserName` 功能。
21
-
此功能旨在成为 Windows 版的 `runAsUser`(Linux),允许用户使用与默认用户名不同的
22
-
用户名运行容器 entrypoint。
23
-
24
-
<!--
25
-
This feature is in beta. The overall functionality for `RunAsUserName` will not change, but there may be some changes regarding the username validation.
26
-
-->
27
-
{{< note >}}
28
-
此功能目前处于 Beta 状态。`RunAsUserName` 的整体功能不会出现变更,
29
-
但是关于用户名验证的部分可能会有所更改。
30
-
{{< /note >}}
20
+
本页展示如何为运行为在 Windows 节点上运行的 Pod 和容器配置 `RunAsUserName` 。
21
+
大致相当于 Linux 上的 `runAsUser`,允许在容器中以与默认值不同的用户名运行应用。
31
22
32
23
## {{% heading "prerequisites" %}}
33
24
@@ -45,9 +36,9 @@ To specify the username with which to execute the Pod's container processes, inc
45
36
## 为 Pod 设置 Username
46
37
47
38
要指定运行 Pod 容器时所使用的用户名,请在 Pod 声明中包含 `securityContext`
The Windows security context options that you specify for a Container apply only to that individual Container, and they override the settings made at the Pod level.
@@ -222,4 +218,3 @@ For more information about these limtations, check [here](https://support.micros
222
218
*[Kubernetes 中调度 Windows 容器的指南](/zh/docs/setup/production-environment/windows/user-guide-windows-containers/)
0 commit comments