[zh-cn]sync assign-pods-nodes configure-runasusername extended-resource
Signed-off-by: xin.li <xin.li@daocloud.io>pull/42438/head
parent
5ef1c2c1d0
commit
3c888c82e7
|
@ -100,7 +100,7 @@ a `disktype=ssd` label.
|
|||
此 Pod 配置文件描述了一个拥有节点选择器 `disktype: ssd` 的 Pod。这表明该 Pod
|
||||
将被调度到有 `disktype=ssd` 标签的节点。
|
||||
|
||||
{{< codenew file="pods/pod-nginx.yaml" >}}
|
||||
{{% codenew file="pods/pod-nginx.yaml" %}}
|
||||
|
||||
<!--
|
||||
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`.
|
|||
|
||||
你也可以通过设置 `nodeName` 将某个 Pod 调度到特定的节点。
|
||||
|
||||
{{< codenew file="pods/pod-nginx-specific-node.yaml" >}}
|
||||
{{% codenew file="pods/pod-nginx-specific-node.yaml" %}}
|
||||
|
||||
<!--
|
||||
Use the configuration file to create a pod that will get scheduled on `foo-node` only.
|
||||
|
|
|
@ -54,7 +54,7 @@ Here is a configuration file for a Windows Pod that has the `runAsUserName` fiel
|
|||
|
||||
这儿有一个已经设置了 `runAsUserName` 字段的 Windows Pod 的配置文件:
|
||||
|
||||
{{< codenew file="windows/run-as-username-pod.yaml" >}}
|
||||
{{% code file="windows/run-as-username-pod.yaml" %}}
|
||||
|
||||
<!--
|
||||
Create the Pod:
|
||||
|
@ -134,7 +134,7 @@ Here is the configuration file for a Pod that has one Container, and the `runAsU
|
|||
|
||||
这里有一个 Pod 的配置文件,其中只有一个容器,并且在 Pod 级别和容器级别都设置了 `runAsUserName`:
|
||||
|
||||
{{< codenew file="windows/run-as-username-container.yaml" >}}
|
||||
{{% code file="windows/run-as-username-container.yaml" %}}
|
||||
|
||||
<!--
|
||||
Create the Pod:
|
||||
|
|
|
@ -54,7 +54,7 @@ Here is the configuration file for a Pod that has one Container:
|
|||
|
||||
下面是包含一个容器的 Pod 配置文件:
|
||||
|
||||
{{< codenew file="pods/resource/extended-resource-pod.yaml" >}}
|
||||
{{% code file="pods/resource/extended-resource-pod.yaml" %}}
|
||||
|
||||
<!--
|
||||
In the configuration file, you can see that the Container requests 3 dongles.
|
||||
|
@ -109,7 +109,7 @@ two dongles.
|
|||
|
||||
下面是包含一个容器的 Pod 配置文件,容器请求了 2 个 dongles。
|
||||
|
||||
{{< codenew file="pods/resource/extended-resource-pod-2.yaml" >}}
|
||||
{{% code file="pods/resource/extended-resource-pod-2.yaml" %}}
|
||||
|
||||
<!--
|
||||
Kubernetes will not be able to satisfy the request for two dongles, because the first Pod
|
||||
|
|
Loading…
Reference in New Issue