Skip to content

Commit

Permalink
Merge pull request #1 from dotbalo/hello-apparmor-upgrade
Browse files Browse the repository at this point in the history
Update the configuration location of appArmorProfile
  • Loading branch information
dotbalo authored Jun 20, 2024
2 parents 052ff22 + 70ede28 commit 565d12d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/zh-cn/examples/pods/security/hello-apparmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v1
kind: Pod
metadata:
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:
securityContext:
appArmorProfile:
type: Localhost
localhostProfile: k8s-apparmor-example-deny-write
containers:
- name: hello
image: busybox:1.28
Expand Down

0 comments on commit 565d12d

Please sign in to comment.