Last active
November 2, 2020 23:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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