summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/templates/k8s-dashboard-user.yml.j2
diff options
context:
space:
mode:
authorPetr OspalĂ˝ <p.ospaly@partner.samsung.com>2019-04-20 05:25:23 +0200
committerMichal Ptacek <m.ptacek@partner.samsung.com>2019-05-20 10:36:30 +0000
commit67acfb594844515aa07f5d292f334a93ab92f0a2 (patch)
treef88c3dd4d8240b8800b4e97cf103be6834b1f015 /ansible/roles/rke/templates/k8s-dashboard-user.yml.j2
parentbf11d96ff6d9908bf04335a66d0e092a736d4561 (diff)
Add kubernetes dashboard
Either run kubectl proxy, but you must setup routes or kubectl on some node (only infra has kubectl by default). Another option is connecting onto the node where the dashboard is exposed via NodePort. Instructions are here: https://github.com/kubernetes/dashboard/wiki/Accessing-dashboard (1.7.X and above) Change-Id: I5a28f458c0ae949278b1e6eaf6eb063d09f93fc0 Issue-ID: OOM-1778 Signed-off-by: Petr OspalĂ˝ <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/roles/rke/templates/k8s-dashboard-user.yml.j2')
-rw-r--r--ansible/roles/rke/templates/k8s-dashboard-user.yml.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/ansible/roles/rke/templates/k8s-dashboard-user.yml.j2 b/ansible/roles/rke/templates/k8s-dashboard-user.yml.j2
new file mode 100644
index 00000000..9031553c
--- /dev/null
+++ b/ansible/roles/rke/templates/k8s-dashboard-user.yml.j2
@@ -0,0 +1,19 @@
+---
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: admin-user
+ namespace: kube-system
+---
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: ClusterRoleBinding
+metadata:
+ name: admin-user
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-admin
+subjects:
+- kind: ServiceAccount
+ name: admin-user
+ namespace: kube-system \ No newline at end of file