Skip to content

Commit 5404390

Browse files
authored
Merge pull request #42368 from my-git9/path-2678
[zh-cn]sync assign-pods-nodes-using-node-affinity configure-pod-initialization
2 parents b715c17 + 424d978 commit 5404390

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ This means that the pod will get scheduled only on a node that has a `disktype=s
109109
下面清单描述了一个 Pod,它有一个节点亲和性配置 `requiredDuringSchedulingIgnoredDuringExecution``disktype=ssd`
110110
这意味着 pod 只会被调度到具有 `disktype=ssd` 标签的节点上。
111111

112-
{{< codenew file="pods/pod-nginx-required-affinity.yaml" >}}
112+
{{% code file="pods/pod-nginx-required-affinity.yaml" %}}
113113

114114
<!--
115115
1. Apply the manifest to create a Pod that is scheduled onto your
@@ -152,7 +152,7 @@ This means that the pod will prefer a node that has a `disktype=ssd` label.
152152
本清单描述了一个 Pod,它有一个节点亲和性设置 `preferredDuringSchedulingIgnoredDuringExecution``disktype: ssd`
153153
这意味着 Pod 将首选具有 `disktype=ssd` 标签的节点。
154154

155-
{{< codenew file="pods/pod-nginx-preferred-affinity.yaml" >}}
155+
{{% code file="pods/pod-nginx-preferred-affinity.yaml" %}}
156156

157157
<!--
158158
1. Apply the manifest to create a Pod that is scheduled onto your

content/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Kubernetes 提供了存活探针来发现并处理这种情况。
102102
在本练习中,你会创建一个 Pod,其中运行一个基于 `registry.k8s.io/busybox` 镜像的容器。
103103
下面是这个 Pod 的配置文件。
104104

105-
{{< codenew file="pods/probe/exec-liveness.yaml" >}}
105+
{{% code file="pods/probe/exec-liveness.yaml" %}}
106106

107107
<!--
108108
In the configuration file, you can see that the Pod has a single `Container`.
@@ -229,7 +229,7 @@ file for a Pod that runs a container based on the `registry.k8s.io/liveness` ima
229229
另外一种类型的存活探测方式是使用 HTTP GET 请求。
230230
下面是一个 Pod 的配置文件,其中运行一个基于 `registry.k8s.io/liveness` 镜像的容器。
231231

232-
{{< codenew file="pods/probe/http-liveness.yaml" >}}
232+
{{% code file="pods/probe/http-liveness.yaml" %}}
233233

234234
<!--
235235
In the configuration file, you can see that the Pod has a single container.
@@ -325,7 +325,7 @@ can't it is considered a failure.
325325
使用这种配置时,kubelet 会尝试在指定端口和容器建立套接字链接。
326326
如果能建立连接,这个容器就被看作是健康的,如果不能则这个容器就被看作是有问题的。
327327

328-
{{< codenew file="pods/probe/tcp-liveness-readiness.yaml" >}}
328+
{{% code file="pods/probe/tcp-liveness-readiness.yaml" %}}
329329

330330
<!--
331331
As you can see, configuration for a TCP check is quite similar to an HTTP check.
@@ -393,7 +393,7 @@ kubelet 可以配置为使用该协议来执行应用存活性检查。
393393

394394
下面是一个示例清单:
395395

396-
{{< codenew file="pods/probe/grpc-liveness.yaml" >}}
396+
{{% code file="pods/probe/grpc-liveness.yaml" %}}
397397

398398
<!--
399399
To use a gRPC probe, `port` must be configured. If you want to distinguish probes of different types

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Here is the configuration file for the Pod:
3838

3939
下面是 Pod 的配置文件:
4040

41-
{{< codenew file="pods/init-containers.yaml" >}}
41+
{{% code file="pods/init-containers.yaml" %}}
4242

4343
<!--
4444
In the configuration file, you can see that the Pod has a Volume that the init

0 commit comments

Comments
 (0)