Skip to content

Instantly share code, notes, and snippets.

@berinle
Created November 18, 2021 15:23
Show Gist options
  • Save berinle/4dc1cc0f7b982a8c0a723267fa4dcd98 to your computer and use it in GitHub Desktop.
Save berinle/4dc1cc0f7b982a8c0a723267fa4dcd98 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: psp:privileged
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- vmware-system-privileged
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: all:psp:privileged
roleRef:
kind: ClusterRole
name: psp:privileged
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: Group
name: system:serviceaccounts
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment