Skip to content

Instantly share code, notes, and snippets.

@durch
Created March 29, 2017 19:55
Show Gist options
  • Save durch/3dad655582c87177d26c576e4e0c8238 to your computer and use it in GitHub Desktop.
Save durch/3dad655582c87177d26c576e4e0c8238 to your computer and use it in GitHub Desktop.
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: admin-role
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: admin-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin-role
subjects:
- kind: Group
name: admin
- kind: ServiceAccount
name: default
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment