Skip to content

Instantly share code, notes, and snippets.

@berinle
Created July 21, 2022 19:45
Show Gist options
  • Select an option

  • Save berinle/bcc600b4e0f64f07bb57584f153bed4b to your computer and use it in GitHub Desktop.

Select an option

Save berinle/bcc600b4e0f64f07bb57584f153bed4b 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