Skip to content

Commit 4dc1941

Browse files
1000Deltawindsonsea
andcommitted
[zh] Sync cluster-level-pss.
Add code sample that will be applied to the cluster. Add baseline pod yaml example. Fix indentation of ordered list Co-authored-by: Michael <[email protected]>
1 parent 0a9ec19 commit 4dc1941

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

content/zh-cn/docs/tutorials/security/cluster-level-pss.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Pod 安全是一个准入控制器,当新的 Pod 被创建时,它会根据 K
4242
请查阅该版本的文档。
4343

4444
## {{% heading "prerequisites" %}}
45+
4546
<!--
4647
Install the following on your workstation:
4748
@@ -434,6 +435,8 @@ following:
434435
-->
435436
7. 在 default 名字空间下创建一个 Pod:
436437

438+
{{% code_sample file="security/example-baseline-pod.yaml" %}}
439+
437440
```shell
438441
kubectl apply -f https://k8s.io/examples/security/example-baseline-pod.yaml
439442
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: nginx
5+
spec:
6+
containers:
7+
- image: nginx
8+
name: nginx
9+
ports:
10+
- containerPort: 80

0 commit comments

Comments
 (0)