Skip to content

Commit 06147cb

Browse files
authored
Merge pull request #42438 from my-git9/path-25493
[zh-cn]sync assign-pods-nodes configure-runasusername extended-resource
2 parents 5ef1c2c + 3c888c8 commit 06147cb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

content/zh-cn/docs/tasks/configure-pod-container/assign-pods-nodes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ a `disktype=ssd` label.
100100
此 Pod 配置文件描述了一个拥有节点选择器 `disktype: ssd` 的 Pod。这表明该 Pod
101101
将被调度到有 `disktype=ssd` 标签的节点。
102102

103-
{{< codenew file="pods/pod-nginx.yaml" >}}
103+
{{% codenew file="pods/pod-nginx.yaml" %}}
104104

105105
<!--
106106
1. Use the configuration file to create a pod that will get scheduled on your
@@ -140,7 +140,7 @@ You can also schedule a pod to one specific node via setting `nodeName`.
140140

141141
你也可以通过设置 `nodeName` 将某个 Pod 调度到特定的节点。
142142

143-
{{< codenew file="pods/pod-nginx-specific-node.yaml" >}}
143+
{{% codenew file="pods/pod-nginx-specific-node.yaml" %}}
144144

145145
<!--
146146
Use the configuration file to create a pod that will get scheduled on `foo-node` only.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here is a configuration file for a Windows Pod that has the `runAsUserName` fiel
5454

5555
这儿有一个已经设置了 `runAsUserName` 字段的 Windows Pod 的配置文件:
5656

57-
{{< codenew file="windows/run-as-username-pod.yaml" >}}
57+
{{% code file="windows/run-as-username-pod.yaml" %}}
5858

5959
<!--
6060
Create the Pod:
@@ -134,7 +134,7 @@ Here is the configuration file for a Pod that has one Container, and the `runAsU
134134

135135
这里有一个 Pod 的配置文件,其中只有一个容器,并且在 Pod 级别和容器级别都设置了 `runAsUserName`
136136

137-
{{< codenew file="windows/run-as-username-container.yaml" >}}
137+
{{% code file="windows/run-as-username-container.yaml" %}}
138138

139139
<!--
140140
Create the Pod:

content/zh-cn/docs/tasks/configure-pod-container/extended-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here is the configuration file for a Pod that has one Container:
5454

5555
下面是包含一个容器的 Pod 配置文件:
5656

57-
{{< codenew file="pods/resource/extended-resource-pod.yaml" >}}
57+
{{% code file="pods/resource/extended-resource-pod.yaml" %}}
5858

5959
<!--
6060
In the configuration file, you can see that the Container requests 3 dongles.
@@ -109,7 +109,7 @@ two dongles.
109109
110110
下面是包含一个容器的 Pod 配置文件,容器请求了 2 个 dongles。
111111
112-
{{< codenew file="pods/resource/extended-resource-pod-2.yaml" >}}
112+
{{% code file="pods/resource/extended-resource-pod-2.yaml" %}}
113113
114114
<!--
115115
Kubernetes will not be able to satisfy the request for two dongles, because the first Pod

0 commit comments

Comments
 (0)