[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
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Pod 安全策略
|
title: Pod 安全策略
|
||||||
content_type: concept
|
content_type: concept
|
||||||
weight: 20
|
weight: 30
|
||||||
---
|
---
|
||||||
<!--
|
<!--
|
||||||
reviewers:
|
reviewers:
|
||||||
@@ -9,7 +9,7 @@ reviewers:
|
|||||||
- tallclair
|
- tallclair
|
||||||
title: Pod Security Policies
|
title: Pod Security Policies
|
||||||
content_type: concept
|
content_type: concept
|
||||||
weight: 20
|
weight: 30
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{< feature-state state="beta" >}}
|
{{< feature-state state="beta" >}}
|
||||||
@@ -404,12 +404,19 @@ kubectl-user create -f- <<EOF
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: pause
|
name: pause
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pause
|
- name: pause
|
||||||
image: k8s.gcr.io/pause
|
image: k8s.gcr.io/pause
|
||||||
EOF
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The output is similar to this:
|
||||||
|
-->
|
||||||
|
输出类似于:
|
||||||
|
```
|
||||||
Error from server (Forbidden): error when creating "STDIN": pods "pause" is forbidden: unable to validate against any pod security policy: []
|
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- <<EOF
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: pause
|
name: pause
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pause
|
- name: pause
|
||||||
image: k8s.gcr.io/pause
|
image: k8s.gcr.io/pause
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
<!--
|
||||||
输出:
|
The output is similar to this:
|
||||||
|
-->
|
||||||
|
输出类似于:
|
||||||
```
|
```
|
||||||
pod "pause" created
|
pod "pause" created
|
||||||
```
|
```
|
||||||
@@ -513,18 +521,21 @@ kubectl-user create -f- <<EOF
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: privileged
|
name: privileged
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pause
|
- name: pause
|
||||||
image: k8s.gcr.io/pause
|
image: k8s.gcr.io/pause
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
输出为:
|
<!--
|
||||||
|
The output is similar to this:
|
||||||
|
-->
|
||||||
|
|
||||||
|
输出类似于:
|
||||||
```
|
```
|
||||||
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]
|
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]
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: 资源配额
|
title: 资源配额
|
||||||
content_type: concept
|
content_type: concept
|
||||||
weight: 10
|
weight: 20
|
||||||
---
|
---
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -9,7 +9,7 @@ reviewers:
|
|||||||
- derekwaynecarr
|
- derekwaynecarr
|
||||||
title: Resource Quotas
|
title: Resource Quotas
|
||||||
content_type: concept
|
content_type: concept
|
||||||
weight: 10
|
weight: 20
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- overview -->
|
<!-- overview -->
|
||||||
|
|||||||
Reference in New Issue
Block a user