apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  name: efs-csi-node
spec:
  allowPrivilegeEscalation: true
  fsGroup:
    rule: RunAsAny
  privileged: true
  runAsUser:
    rule: RunAsAny
  seLinux:
    rule: RunAsAny
  supplementalGroups:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  hostNetwork: true
  hostPorts:
  - min: 9809
    max: 9809
  volumes:
  - secret
  - configMap
  - hostPath
