EUGENIO SOUZA CARVALHO há 4 anos atrás
pai
commit
8069d48c13
1 ficheiros alterados com 21 adições e 0 exclusões
  1. 21 0
      kubedashboard/dashboard-adminuser.yaml

+ 21 - 0
kubedashboard/dashboard-adminuser.yaml

@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: admin-user
+  namespace: kubernetes-dashboard
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: admin-user
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: cluster-admin
+subjects:
+- kind: ServiceAccount
+  name: admin-user
+  namespace: kubernetes-dashboard
+
+# run command to get a token authentication
+# kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')