Skip to content

Commit

Permalink
Merge pull request #46897 from dotbalo/main
Browse files Browse the repository at this point in the history
[zh] update content/zh-cn/examples/pods/security/hello-apparmor.yaml
  • Loading branch information
k8s-ci-robot authored Jun 20, 2024
2 parents f7be041 + 565d12d commit d4f93e3
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 d4f93e3

Please sign in to comment.