Skip to content

Commit

Permalink
Fix PodSecurityPolicies
Browse files Browse the repository at this point in the history
  • Loading branch information
ymmt2005 committed Oct 7, 2020
1 parent ecff237 commit b4b50d5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion v2/config/default/pod_security_policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ spec:
- 'emptyDir'
- 'secret'
- 'downwardAPI'
hostNetwork: false
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: false
hostPID: false
seLinux:
Expand All @@ -31,6 +34,12 @@ spec:
# Forbid adding the root group.
- min: 1
max: 65535
fsGroup:
rule: 'MustRunAs'
ranges:
# Forbid adding the root group.
- min: 1
max: 65535
readOnlyRootFilesystem: true
---
apiVersion: policy/v1beta1
Expand All @@ -56,6 +65,10 @@ spec:
- pathPrefix: "/etc/cni/net.d"
readOnly: false
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostPID: true
seLinux:
rule: 'RunAsAny'
runAsUser:
Expand All @@ -82,6 +95,9 @@ spec:
- 'secret'
- 'downwardAPI'
hostNetwork: true
hostPorts:
- min: 0
max: 65535
seLinux:
rule: 'RunAsAny'
runAsUser:
Expand Down

0 comments on commit b4b50d5

Please sign in to comment.