Skip to content

Instantly share code, notes, and snippets.

@shazadbrohi
Last active November 2, 2020 23:41
Show Gist options
  • Save shazadbrohi/a94b4d10f3c848b4b385b5f9cd15fccf to your computer and use it in GitHub Desktop.
Save shazadbrohi/a94b4d10f3c848b4b385b5f9cd15fccf to your computer and use it in GitHub Desktop.
Grants permission to a specific workload to use the privileged pod security policy.
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: <role-binding-name>
namespace: <your-namespace>
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: privileged-cluster-role
subjects:
- kind: ServiceAccount
name: <sa-name>
namespace: <your-namespace>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment