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: