Merge pull request #46897 from dotbalo/main
[zh] update content/zh-cn/examples/pods/security/hello-apparmor.yaml
This commit is contained in:
commit
d4f93e38e3
|
|
@ -2,11 +2,11 @@ apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: hello-apparmor
|
name: hello-apparmor
|
||||||
annotations:
|
|
||||||
# 告知 Kubernetes 去应用 AppArmor 配置 "k8s-apparmor-example-deny-write"。
|
|
||||||
# 请注意,如果节点上运行的 Kubernetes 不是 1.4 或更高版本,此注解将被忽略。
|
|
||||||
container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-write
|
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
appArmorProfile:
|
||||||
|
type: Localhost
|
||||||
|
localhostProfile: k8s-apparmor-example-deny-write
|
||||||
containers:
|
containers:
|
||||||
- name: hello
|
- name: hello
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue