From 1078f3f88e21f483667fc862c25ac04e4c8c9dd1 Mon Sep 17 00:00:00 2001 From: ydFu Date: Mon, 25 Jan 2021 11:21:22 +0800 Subject: [PATCH] [zh] Sync concepts pages for policy * [zh] Umbrella issue: pages out of sync in concepts section(Misc Batch 5) ``` [x] content/zh/docs/concepts/policy/resource-quotas.md [x] content/zh/docs/concepts/cluster-administration/system-metrics.md [x] content/zh/docs/concepts/cluster-administration/flow-control.md ``` * sync with english version in policy/pod-security-policy.md Signed-off-by: ydFu ader.ydfu@gmail.com --- .../concepts/policy/pod-security-policy.md | 35 ++++++++++++------- .../docs/concepts/policy/resource-quotas.md | 4 +-- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/content/zh/docs/concepts/policy/pod-security-policy.md b/content/zh/docs/concepts/policy/pod-security-policy.md index 0fc503005f..2c80607ed4 100644 --- a/content/zh/docs/concepts/policy/pod-security-policy.md +++ b/content/zh/docs/concepts/policy/pod-security-policy.md @@ -1,7 +1,7 @@ --- title: Pod 安全策略 content_type: concept -weight: 20 +weight: 30 --- {{< feature-state state="beta" >}} @@ -404,12 +404,19 @@ kubectl-user create -f- < +输出类似于: +``` Error from server (Forbidden): error when creating "STDIN": pods "pause" is forbidden: unable to validate against any pod security policy: [] ``` @@ -487,16 +494,17 @@ kubectl-user create -f- < +输出类似于: ``` pod "pause" created ``` @@ -513,18 +521,21 @@ kubectl-user create -f- < +输出类似于: ``` Error from server (Forbidden): error when creating "STDIN": pods "privileged" is forbidden: unable to validate against any pod security policy: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed] ``` diff --git a/content/zh/docs/concepts/policy/resource-quotas.md b/content/zh/docs/concepts/policy/resource-quotas.md index e15aaccc21..33d2a9e5f3 100644 --- a/content/zh/docs/concepts/policy/resource-quotas.md +++ b/content/zh/docs/concepts/policy/resource-quotas.md @@ -1,7 +1,7 @@ --- title: 资源配额 content_type: concept -weight: 10 +weight: 20 ---