Skip to content

Instantly share code, notes, and snippets.

@akhilerm
Last active April 16, 2019 12:48
Show Gist options
  • Save akhilerm/0af87f53cba506ab33e3c8af758900bc to your computer and use it in GitHub Desktop.
Save akhilerm/0af87f53cba506ab33e3c8af758900bc to your computer and use it in GitHub Desktop.
Pod Security Policy for OpenEBS privileged access
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: openebs-privileged
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
allowPrivilegeEscalation: true
allowedCapabilities:
- '*'
volumes:
- '*'
hostNetwork: true
hostPorts:
- min: 0
max: 65535
hostIPC: true
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
rule: 'RunAsAny'
supplementalGroups:
rule: 'RunAsAny'
fsGroup:
rule: 'RunAsAny'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment