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>
diff --git a/ansible/roles/rke/tasks/rke_config.yml b/ansible/roles/rke/tasks/rke_config.yml
index 4950319..4112e10 100644
--- a/ansible/roles/rke/tasks/rke_config.yml
+++ b/ansible/roles/rke/tasks/rke_config.yml
@@ -38,6 +38,16 @@
src: cluster.yml.j2
dest: "{{ cluster_config_dir }}/cluster.yml"
+- name: Prepare rke addon manifest (dashboard)
+ template:
+ src: kubernetes-dashboard.yaml.j2
+ dest: "{{ cluster_config_dir }}/kubernetes-dashboard.yml"
+
+- name: Prepare rke addon manifest (dashboard user)
+ template:
+ src: k8s-dashboard-user.yml.j2
+ dest: "{{ cluster_config_dir }}/k8s-dashboard-user.yml"
+
- name: Install rke cli tool
copy:
src: "{{ app_data_path }}/downloads/{{ rke_binary }}"