Skip to content

Instantly share code, notes, and snippets.

@miry
Created March 26, 2017 23:06
Show Gist options
  • Save miry/420660824519636dda4784c5608bfff2 to your computer and use it in GitHub Desktop.
Save miry/420660824519636dda4784c5608bfff2 to your computer and use it in GitHub Desktop.
Sample Kubernetes admin role for UI
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1alpha1
metadata:
name: kube-system-admin
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1alpha1
metadata:
name: kube-system-service-account-role-binding
subjects:
- kind: ServiceAccount
name: default
namespace: kube-system
roleRef:
kind: ClusterRole
name: kube-system-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment