From 3c4cbf133e76723fc0f360d15433795b08101e67 Mon Sep 17 00:00:00 2001 From: Manuel Cintron <4176113+mcntrn@users.noreply.github.com> Date: Wed, 13 Mar 2019 15:58:25 -0500 Subject: [PATCH] Adding ability to override dashboard replica count (#4344) --- roles/kubernetes-apps/ansible/defaults/main.yml | 1 + roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/ansible/defaults/main.yml b/roles/kubernetes-apps/ansible/defaults/main.yml index 7a5e2efa4..1fc58b549 100644 --- a/roles/kubernetes-apps/ansible/defaults/main.yml +++ b/roles/kubernetes-apps/ansible/defaults/main.yml @@ -37,6 +37,7 @@ netchecker_server_group: 1000 # Dashboard dashboard_enabled: true +dashboard_replicas: 1 # Limits for dashboard dashboard_cpu_limit: 100m diff --git a/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 b/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 index 070d4def9..f079bf122 100644 --- a/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2 @@ -130,7 +130,7 @@ metadata: name: kubernetes-dashboard namespace: kube-system spec: - replicas: 1 + replicas: {{ dashboard_replicas }} revisionHistoryLimit: 10 selector: matchLabels: