File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
content/zh/examples/policy Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -5,44 +5,43 @@ metadata:
5
5
annotations :
6
6
seccomp.security.alpha.kubernetes.io/allowedProfileNames : ' docker/default,runtime/default'
7
7
apparmor.security.beta.kubernetes.io/allowedProfileNames : ' runtime/default'
8
- seccomp.security.alpha.kubernetes.io/defaultProfileName : ' runtime/default'
9
8
apparmor.security.beta.kubernetes.io/defaultProfileName : ' runtime/default'
10
9
spec :
11
10
privileged : false
12
- # Required to prevent escalations to root.
11
+ # 防止权限升级到 root
13
12
allowPrivilegeEscalation : false
14
- # This is redundant with non-root + disallow privilege escalation,
15
- # but we can provide it for defense in depth.
16
13
requiredDropCapabilities :
17
14
- ALL
18
- # Allow core volume types .
15
+ # 允许的核心卷类型 .
19
16
volumes :
20
17
- ' configMap'
21
18
- ' emptyDir'
22
19
- ' projected'
23
20
- ' secret'
24
21
- ' downwardAPI'
25
- # Assume that persistentVolumes set up by the cluster admin are safe to use.
22
+ # 假设集群管理员设置的临时 CSI 驱动程序和持久卷可以安全使用
23
+ - ' csi'
26
24
- ' persistentVolumeClaim'
25
+ - ' ephemeral'
27
26
hostNetwork : false
28
27
hostIPC : false
29
28
hostPID : false
30
29
runAsUser :
31
- # Require the container to run without root privileges.
30
+ # 要求容器在没有 root 权限的情况下运行
32
31
rule : ' MustRunAsNonRoot'
33
32
seLinux :
34
- # This policy assumes the nodes are using AppArmor rather than SELinux.
33
+ # 此策略假定节点使用 AppArmor 而不是 SELinux
35
34
rule : ' RunAsAny'
36
35
supplementalGroups :
37
36
rule : ' MustRunAs'
38
37
ranges :
39
- # Forbid adding the root group.
38
+ # 禁止添加 root 组
40
39
- min : 1
41
40
max : 65535
42
41
fsGroup :
43
42
rule : ' MustRunAs'
44
43
ranges :
45
- # Forbid adding the root group.
44
+ # 禁止添加 root 组
46
45
- min : 1
47
46
max : 65535
48
47
readOnlyRootFilesystem : false
You can’t perform that action at this time.
0 commit comments