Last active
November 4, 2020 07:56
-
-
Save shazadbrohi/5b2b08d71cb42cf5934357c675148bf0 to your computer and use it in GitHub Desktop.
A set of RBAC resources to enforce the restricted psp across all service accounts
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: ClusterRole | |
metadata: | |
name: restricted-cluster-role | |
rules: | |
- apiGroups: | |
- policy | |
resourceNames: | |
- restricted-psp | |
resources: | |
- podsecuritypolicies | |
verbs: | |
- use | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: restricted-cluster-role-binding | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: restricted-cluster-role | |
subjects: | |
- apiGroup: rbac.authorization.k8s.io | |
kind: Group | |
name: system:serviceaccounts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment