Merge pull request #34621 from windsonsea/docsite4
[zh-cn] resync policy/baseline-psp.yamlpull/34634/head
commit
6e740bee45
|
@ -3,13 +3,13 @@ kind: PodSecurityPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: baseline
|
name: baseline
|
||||||
annotations:
|
annotations:
|
||||||
# Optional: Allow the default AppArmor profile, requires setting the default.
|
# 可选:允许 default AppArmor 配置,需要设置 default 配置
|
||||||
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
|
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
|
||||||
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
|
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
|
||||||
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
|
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
|
||||||
spec:
|
spec:
|
||||||
privileged: false
|
privileged: false
|
||||||
# The moby default capability set, minus NET_RAW
|
# 这是 moby 默认的权能集,去掉了 NET_RAW
|
||||||
allowedCapabilities:
|
allowedCapabilities:
|
||||||
- 'CHOWN'
|
- 'CHOWN'
|
||||||
- 'DAC_OVERRIDE'
|
- 'DAC_OVERRIDE'
|
||||||
|
@ -24,19 +24,19 @@ spec:
|
||||||
- 'SYS_CHROOT'
|
- 'SYS_CHROOT'
|
||||||
- 'KILL'
|
- 'KILL'
|
||||||
- 'AUDIT_WRITE'
|
- 'AUDIT_WRITE'
|
||||||
# Allow all volume types except hostpath
|
# 允许除 hostpath 外的所有卷类型
|
||||||
volumes:
|
volumes:
|
||||||
# 'core' volume types
|
# 'core' 卷类型
|
||||||
- 'configMap'
|
- 'configMap'
|
||||||
- 'emptyDir'
|
- 'emptyDir'
|
||||||
- 'projected'
|
- 'projected'
|
||||||
- 'secret'
|
- 'secret'
|
||||||
- 'downwardAPI'
|
- 'downwardAPI'
|
||||||
# Assume that ephemeral CSI drivers & persistentVolumes set up by the cluster admin are safe to use.
|
# 假定集群管理员设置的临时 CSI 驱动和 persistentVolume 可以安全使用。
|
||||||
- 'csi'
|
- 'csi'
|
||||||
- 'persistentVolumeClaim'
|
- 'persistentVolumeClaim'
|
||||||
- 'ephemeral'
|
- 'ephemeral'
|
||||||
# Allow all other non-hostpath volume types.
|
# 允许所有其他非 hostpath 的卷类型。
|
||||||
- 'awsElasticBlockStore'
|
- 'awsElasticBlockStore'
|
||||||
- 'azureDisk'
|
- 'azureDisk'
|
||||||
- 'azureFile'
|
- 'azureFile'
|
||||||
|
@ -64,9 +64,9 @@ spec:
|
||||||
runAsUser:
|
runAsUser:
|
||||||
rule: 'RunAsAny'
|
rule: 'RunAsAny'
|
||||||
seLinux:
|
seLinux:
|
||||||
# This policy assumes the nodes are using AppArmor rather than SELinux.
|
# 此策略假定节点正在使用 AppArmor 而不是 SELinux。
|
||||||
# The PSP SELinux API cannot express the SELinux Pod Security Standards,
|
# PSP SELinux API 无法体现 Pod SELinux 安全标准,
|
||||||
# so if using SELinux, you must choose a more restrictive default.
|
# 因此如果使用 SELinux,你必须选择一个限制更多的默认值。
|
||||||
rule: 'RunAsAny'
|
rule: 'RunAsAny'
|
||||||
supplementalGroups:
|
supplementalGroups:
|
||||||
rule: 'RunAsAny'
|
rule: 'RunAsAny'
|
||||||
|
|
Loading…
Reference in New Issue