Skip to content

Instantly share code, notes, and snippets.

@miry
Last active May 23, 2019 10:51
Show Gist options
  • Save miry/95d2b1f37787eb9824cd495269ad7c01 to your computer and use it in GitHub Desktop.
Save miry/95d2b1f37787eb9824cd495269ad7c01 to your computer and use it in GitHub Desktop.
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1alpha1
metadata:
name: admin-role
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1alpha1
metadata:
name: admin-binding
subjects:
- kind: User
name: [email protected]
roleRef:
kind: ClusterRole
name: admin-role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment