imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Add a service account so we can reach the k8s dashboard
2019-05-09, Gary Kramlich
5669b461ec0d
Parents
3fef569b82d6
Children
3a2a0bbbd69a
Add a service account so we can reach the k8s dashboard
1 files changed, 20 insertions(+), 0 deletions(-)
+20
-0
05-dashboard-admin.yaml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/05-dashboard-admin.yaml Thu May 09 06:48:41 2019 -0500
@@ -0,0 +1,20 @@
+---
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: dashboard-admin
+ namespace: kube-system
+---
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: ClusterRoleBinding
+metadata:
+ name: dashboard-admin
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-admin
+subjects:
+- kind: ServiceAccount
+ name: dashboard-admin
+ namespace: kube-system
+