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 35e5420
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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,7 @@ spec:
- 'emptyDir'
- 'secret'
- 'downwardAPI'
hostNetwork: false
hostNetwork: true
hostIPC: false
hostPID: false
seLinux:
Expand All @@ -31,6 +31,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 +62,7 @@ spec:
- pathPrefix: "/etc/cni/net.d"
readOnly: false
hostNetwork: true
hostPID: true
seLinux:
rule: 'RunAsAny'
runAsUser:
Expand Down

0 comments on commit 35e5420

Please sign in to comment.