We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 052ff22 commit 70ede28Copy full SHA for 70ede28
content/zh-cn/examples/pods/security/hello-apparmor.yaml
@@ -2,11 +2,11 @@ apiVersion: v1
2
kind: Pod
3
metadata:
4
name: hello-apparmor
5
- annotations:
6
- # 告知 Kubernetes 去应用 AppArmor 配置 "k8s-apparmor-example-deny-write"。
7
- # 请注意,如果节点上运行的 Kubernetes 不是 1.4 或更高版本,此注解将被忽略。
8
- container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-write
9
spec:
+ securityContext:
+ appArmorProfile:
+ type: Localhost
+ localhostProfile: k8s-apparmor-example-deny-write
10
containers:
11
- name: hello
12
image: busybox:1.28
0 commit comments