Skip to content

Commit

Permalink
[zh] Sync cluster-level-pss.
Browse files Browse the repository at this point in the history
Add code sample that will be applied to the cluster.

Add baseline pod yaml example.

Fix indentation of ordered list

Co-authored-by: Michael <haifeng.yao@daocloud.io>
  • Loading branch information
1000Delta and windsonsea committed Dec 5, 2023
1 parent 0a9ec19 commit 4dc1941
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/zh-cn/docs/tutorials/security/cluster-level-pss.md
Expand Up @@ -42,6 +42,7 @@ Pod 安全是一个准入控制器,当新的 Pod 被创建时,它会根据 K
请查阅该版本的文档。

## {{% heading "prerequisites" %}}

<!--
Install the following on your workstation:
Expand Down Expand Up @@ -434,6 +435,8 @@ following:
-->
7. 在 default 名字空间下创建一个 Pod:

{{% code_sample file="security/example-baseline-pod.yaml" %}}

```shell
kubectl apply -f https://k8s.io/examples/security/example-baseline-pod.yaml
```
Expand Down
10 changes: 10 additions & 0 deletions content/zh-cn/examples/security/example-baseline-pod.yaml
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80

0 comments on commit 4dc1941

Please sign in to comment.