Skip to content

Commit

Permalink
sync cpu-constraint-namespace memory-default-namespace quota-memory-c…
Browse files Browse the repository at this point in the history
…pu-namespace quota-pod-namespace

sync cpu-constraint-namespace memory-default-namespace quota-memory-cpu-namespace quota-pod-namespace
  • Loading branch information
asa3311 committed Aug 11, 2023
1 parent 38aa0a7 commit 0636fe7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Expand Up @@ -74,7 +74,7 @@ Here's a manifest for an example {{< glossary_tooltip text="LimitRange" term_id=

以下为 {{< glossary_tooltip text="LimitRange" term_id="limitrange" >}} 的示例清单:

{{% codenew file="admin/resource/cpu-constraints.yaml" %}}
{{% code file="admin/resource/cpu-constraints.yaml" %}}

<!--
Create the LimitRange:
Expand Down Expand Up @@ -155,7 +155,7 @@ minimum and maximum CPU constraints imposed by the LimitRange for this namespace
该容器声明了 CPU 请求 500 millicpu 和 CPU 限制 800 millicpu。
这些参数满足了 LimitRange 对象为此名字空间规定的 CPU 最小和最大限制。

{{% codenew file="admin/resource/cpu-constraints-pod.yaml" %}}
{{% code file="admin/resource/cpu-constraints-pod.yaml" %}}

<!--
Create the Pod:
Expand Down Expand Up @@ -219,7 +219,7 @@ CPU request of 500 millicpu and a cpu limit of 1.5 cpu.
这里给出了包含一个容器的 Pod 清单。容器声明了 500 millicpu 的 CPU
请求和 1.5 CPU 的 CPU 限制。

{{% codenew file="admin/resource/cpu-constraints-pod-2.yaml" %}}
{{% code file="admin/resource/cpu-constraints-pod-2.yaml" %}}

<!--
Attempt to create the Pod:
Expand Down Expand Up @@ -252,7 +252,7 @@ CPU request of 100 millicpu and a CPU limit of 800 millicpu.

以下为某个只有一个容器的 Pod 的清单。该容器声明了 CPU 请求 100 millicpu 和 CPU 限制 800 millicpu。

{{% codenew file="admin/resource/cpu-constraints-pod-3.yaml" %}}
{{% code file="admin/resource/cpu-constraints-pod-3.yaml" %}}

<!--
Attempt to create the Pod:
Expand Down Expand Up @@ -286,7 +286,7 @@ specify a CPU request, nor does it specify a CPU limit.

以下为一个只有一个容器的 Pod 的清单。该容器没有声明 CPU 请求,也没有声明 CPU 限制。

{{% codenew file="admin/resource/cpu-constraints-pod-4.yaml" %}}
{{% code file="admin/resource/cpu-constraints-pod-4.yaml" %}}

<!--
Create the Pod:
Expand Down
Expand Up @@ -81,7 +81,7 @@ request and a default memory limit.
以下为 {{< glossary_tooltip text="LimitRange" term_id="limitrange" >}} 的示例清单。
清单中声明了默认的内存请求和默认的内存限制。

{{% codenew file="admin/resource/memory-defaults.yaml" %}}
{{% code file="admin/resource/memory-defaults.yaml" %}}

<!--
Create the LimitRange in the default-mem-example namespace:
Expand All @@ -108,7 +108,7 @@ does not specify a memory request and limit.

以下为只包含一个容器的 Pod 的清单。该容器没有声明内存请求和限制。

{{% codenew file="admin/resource/memory-defaults-pod.yaml" %}}
{{% code file="admin/resource/memory-defaults-pod.yaml" %}}

<!--
Create the Pod.
Expand Down Expand Up @@ -166,7 +166,7 @@ specifies a memory limit, but not a request:

以下为只包含一个容器的 Pod 的清单。该容器声明了内存限制,而没有声明内存请求。

{{% codenew file="admin/resource/memory-defaults-pod-2.yaml" %}}
{{% code file="admin/resource/memory-defaults-pod-2.yaml" %}}

<!--
Create the Pod:
Expand Down Expand Up @@ -211,7 +211,7 @@ specifies a memory request, but not a limit:
-->
以下为只包含一个容器的 Pod 的清单。该容器声明了内存请求,但没有内存限制:

{{% codenew file="admin/resource/memory-defaults-pod-3.yaml" %}}
{{% code file="admin/resource/memory-defaults-pod-3.yaml" %}}

<!--
Create the Pod:
Expand Down
Expand Up @@ -65,7 +65,7 @@ Here is a manifest for an example ResourceQuota:

下面是 ResourceQuota 的示例清单:

{{% codenew file="admin/resource/quota-mem-cpu.yaml" %}}
{{% code file="admin/resource/quota-mem-cpu.yaml" %}}

<!--
Create the ResourceQuota:
Expand Down Expand Up @@ -116,7 +116,7 @@ Here is a manifest for an example Pod:

以下是 Pod 的示例清单:

{{% codenew file="admin/resource/quota-mem-cpu-pod.yaml" %}}
{{% code file="admin/resource/quota-mem-cpu-pod.yaml" %}}

<!--
Create the Pod:
Expand Down Expand Up @@ -186,7 +186,7 @@ Here is a manifest for a second Pod:

以下为第二个 Pod 的清单:

{{% codenew file="admin/resource/quota-mem-cpu-pod-2.yaml" %}}
{{% code file="admin/resource/quota-mem-cpu-pod-2.yaml" %}}

<!--
In the manifest, you can see that the Pod has a memory request of 700 MiB.
Expand Down
Expand Up @@ -61,7 +61,7 @@ Here is an example manifest for a ResourceQuota:

下面是 ResourceQuota 的示例清单:

{{% codenew file="admin/resource/quota-pod.yaml" %}}
{{% code file="admin/resource/quota-pod.yaml" %}}

<!--
Create the ResourceQuota:
Expand Down Expand Up @@ -104,7 +104,7 @@ Here is an example manifest for a {{< glossary_tooltip term_id="deployment" >}}:
-->
下面是一个 {{< glossary_tooltip term_id="deployment" >}} 的示例清单:

{{% codenew file="admin/resource/quota-pod-deployment.yaml" %}}
{{% code file="admin/resource/quota-pod-deployment.yaml" %}}

<!--
In that manifest, `replicas: 3` tells Kubernetes to attempt to create three new Pods, all
Expand Down

0 comments on commit 0636fe7

Please sign in to comment.