File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
content/zh-cn/examples/policy Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ kind: PodSecurityPolicy
3
3
metadata :
4
4
name : baseline
5
5
annotations :
6
- # Optional: Allow the default AppArmor profile, requires setting the default.
6
+ # 可选:允许 default AppArmor 配置,需要设置 default 配置
7
7
apparmor.security.beta.kubernetes.io/allowedProfileNames : ' runtime/default'
8
8
apparmor.security.beta.kubernetes.io/defaultProfileName : ' runtime/default'
9
9
seccomp.security.alpha.kubernetes.io/allowedProfileNames : ' *'
10
10
spec :
11
11
privileged : false
12
- # The moby default capability set, minus NET_RAW
12
+ # 这是 moby 默认的权能集,去掉了 NET_RAW
13
13
allowedCapabilities :
14
14
- ' CHOWN'
15
15
- ' DAC_OVERRIDE'
@@ -24,19 +24,19 @@ spec:
24
24
- ' SYS_CHROOT'
25
25
- ' KILL'
26
26
- ' AUDIT_WRITE'
27
- # Allow all volume types except hostpath
27
+ # 允许除 hostpath 外的所有卷类型
28
28
volumes :
29
- # 'core' volume types
29
+ # 'core' 卷类型
30
30
- ' configMap'
31
31
- ' emptyDir'
32
32
- ' projected'
33
33
- ' secret'
34
34
- ' downwardAPI'
35
- # Assume that ephemeral CSI drivers & persistentVolumes set up by the cluster admin are safe to use.
35
+ # 假定集群管理员设置的临时 CSI 驱动和 persistentVolume 可以安全使用。
36
36
- ' csi'
37
37
- ' persistentVolumeClaim'
38
38
- ' ephemeral'
39
- # Allow all other non- hostpath volume types.
39
+ # 允许所有其他非 hostpath 的卷类型。
40
40
- ' awsElasticBlockStore'
41
41
- ' azureDisk'
42
42
- ' azureFile'
64
64
runAsUser :
65
65
rule : ' RunAsAny'
66
66
seLinux :
67
- # This policy assumes the nodes are using AppArmor rather than SELinux.
68
- # The PSP SELinux API cannot express the SELinux Pod Security Standards,
69
- # so if using SELinux, you must choose a more restrictive default.
67
+ # 此策略假定节点正在使用 AppArmor 而不是 SELinux。
68
+ # PSP SELinux API 无法体现 Pod SELinux 安全标准,
69
+ # 因此如果使用 SELinux,你必须选择一个限制更多的默认值。
70
70
rule : ' RunAsAny'
71
71
supplementalGroups :
72
72
rule : ' RunAsAny'
You can’t perform that action at this time.
0 commit comments