Skip to content

Commit 3b3574c

Browse files
authored
Merge pull request #32217 from my-git9/patch-54
[zh] Update create-hostprocess-pod.md
2 parents 1159c42 + 241b949 commit 3b3574c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

content/zh/docs/tasks/configure-pod-container/create-hostprocess-pod.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ as Windows server containers, meaning that the version of the base images does n
4646
to match that of the host. It is, however, recommended that you use the same base image
4747
version as your Windows Server container workloads to ensure you do not have any unused
4848
images taking up space on the node. HostProcess containers also support
49-
[volume mounts](./create-hostprocess-pod#volume-mounts) within the container volume.
49+
[volume mounts](#volume-mounts) within the container volume.
5050
-->
5151
类似于安装安全补丁、事件日志收集等这类管理性质的任务可以在不需要集群操作员登录到每个
5252
Windows 节点的前提下执行。HostProcess 容器可以以主机上存在的任何用户账户来运行,
@@ -58,7 +58,7 @@ Windows 节点的前提下执行。HostProcess 容器可以以主机上存在的
5858
这意味着基础镜像的版本不必与主机操作系统的版本匹配。
5959
不过,仍然建议你像使用 Windows 服务器容器负载那样,使用相同的基础镜像版本,
6060
这样你就不会有一些未使用的镜像占用节点上的存储空间。HostProcess 容器也支持
61-
在容器卷内执行[卷挂载](./create-hostprocess-pod#volume-mounts)
61+
在容器卷内执行[卷挂载](#volume-mounts)
6262

6363
<!--
6464
### When should I use a Windows HostProcess container?
@@ -130,12 +130,12 @@ These limitations are relevant for Kubernetes v{{< skew currentVersion >}}:
130130

131131
<!--
132132
- HostProcess containers require containerd 1.6 or higher
133-
{{< glossary_tooltip text="container runtime" term_id="container-runtime" >}}.
133+
{{< glossary_tooltip text="container runtime" term_id="container-runtime" >}}.
134134
- HostProcess pods can only contain HostProcess containers. This is a current limitation
135-
of the Windows OS; non-privileged Windows containers cannot share a vNIC with the host IP namespace.
135+
of the Windows OS; non-privileged Windows containers cannot share a vNIC with the host IP namespace.
136136
- HostProcess containers run as a process on the host and do not have any degree of
137-
isolation other than resource constraints imposed on the HostProcess user account. Neither
138-
filesystem or Hyper-V isolation are supported for HostProcess containers.
137+
isolation other than resource constraints imposed on the HostProcess user account. Neither
138+
filesystem or Hyper-V isolation are supported for HostProcess containers.
139139
-->
140140
- HostProcess 容器需要 containerd 1.6 或更高版本的
141141
{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}。
@@ -145,13 +145,14 @@ filesystem or Hyper-V isolation are supported for HostProcess containers.
145145
用户账号所实施的资源约束外,不提供任何形式的隔离。HostProcess 容器不支持文件系统或
146146
Hyper-V 隔离。
147147
<!--
148-
- Volume mounts are supported and are mounted under the container volume. See [Volume Mounts](#volume-mounts)
148+
- Volume mounts are supported and are mounted under the container volume. See
149+
[Volume Mounts](#volume-mounts)
149150
- A limited set of host user accounts are available for HostProcess containers by default.
150151
See [Choosing a User Account](#choosing-a-user-account).
151152
- Resource limits (disk, memory, cpu count) are supported in the same fashion as processes
152-
on the host.
153+
on the host.
153154
- Both Named pipe mounts and Unix domain sockets are **not** supported and should instead
154-
be accessed via their path on the host (e.g. \\\\.\\pipe\\\*)
155+
be accessed via their path on the host (e.g. \\\\.\\pipe\\\*)
155156
-->
156157
- 卷挂载是被支持的,并且要花在到容器卷下。参见[卷挂载](#volume-mounts)
157158
- 默认情况下有一组主机用户账户可供 HostProcess 容器使用。

0 commit comments

Comments
 (0)