Skip to content

Commit 6e740be

Browse files
authored
Merge pull request #34621 from windsonsea/docsite4
[zh-cn] resync policy/baseline-psp.yaml
2 parents e737b80 + c68e6a2 commit 6e740be

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/zh-cn/examples/policy/baseline-psp.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ kind: PodSecurityPolicy
33
metadata:
44
name: baseline
55
annotations:
6-
# Optional: Allow the default AppArmor profile, requires setting the default.
6+
# 可选:允许 default AppArmor 配置,需要设置 default 配置
77
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
88
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
99
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
1010
spec:
1111
privileged: false
12-
# The moby default capability set, minus NET_RAW
12+
# 这是 moby 默认的权能集,去掉了 NET_RAW
1313
allowedCapabilities:
1414
- 'CHOWN'
1515
- 'DAC_OVERRIDE'
@@ -24,19 +24,19 @@ spec:
2424
- 'SYS_CHROOT'
2525
- 'KILL'
2626
- 'AUDIT_WRITE'
27-
# Allow all volume types except hostpath
27+
# 允许除 hostpath 外的所有卷类型
2828
volumes:
29-
# 'core' volume types
29+
# 'core' 卷类型
3030
- 'configMap'
3131
- 'emptyDir'
3232
- 'projected'
3333
- 'secret'
3434
- 'downwardAPI'
35-
# Assume that ephemeral CSI drivers & persistentVolumes set up by the cluster admin are safe to use.
35+
# 假定集群管理员设置的临时 CSI 驱动和 persistentVolume 可以安全使用。
3636
- 'csi'
3737
- 'persistentVolumeClaim'
3838
- 'ephemeral'
39-
# Allow all other non-hostpath volume types.
39+
# 允许所有其他非 hostpath 的卷类型。
4040
- 'awsElasticBlockStore'
4141
- 'azureDisk'
4242
- 'azureFile'
@@ -64,9 +64,9 @@ spec:
6464
runAsUser:
6565
rule: 'RunAsAny'
6666
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,你必须选择一个限制更多的默认值。
7070
rule: 'RunAsAny'
7171
supplementalGroups:
7272
rule: 'RunAsAny'

0 commit comments

Comments
 (0)