Skip to content

Instantly share code, notes, and snippets.

@AymenSegni
Created December 28, 2019 21:42
Show Gist options
  • Save AymenSegni/5a57b1352f96de2046a5c1fb5121f45e to your computer and use it in GitHub Desktop.
Save AymenSegni/5a57b1352f96de2046a5c1fb5121f45e to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: contoso-cluster-admins
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: userPrincipalName_or_objectId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment