Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 625c8d4

Browse files
Kyle Hodgettsdavidmccormick
Kyle Hodgetts
authored andcommitted
V0.12.x configurable dashboard replicas (#1543)
Allow dashboard replicas to be set via cluster.yaml
1 parent 16a044b commit 625c8d4

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

core/controlplane/config/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ func NewDefaultCluster() *Cluster {
215215
AdminPrivileges: true,
216216
InsecureLogin: false,
217217
AllowSkipLogin: false,
218+
Replicas: 1,
218219
Enabled: true,
219220
},
220221
Kubernetes: Kubernetes{
@@ -874,6 +875,7 @@ type KubernetesDashboard struct {
874875
InsecureLogin bool `yaml:"insecureLogin"`
875876
AllowSkipLogin bool `yaml:"allowSkipLogin"`
876877
Enabled bool `yaml:"enabled"`
878+
Replicas int `yaml:"replicas,omitempty"`
877879
ComputeResources ComputeResources `yaml:"resources,omitempty"`
878880
}
879881

core/controlplane/config/templates/cloud-config-controller

+1-1
Original file line numberDiff line numberDiff line change
@@ -4214,7 +4214,7 @@ write_files:
42144214
name: kubernetes-dashboard
42154215
namespace: kube-system
42164216
spec:
4217-
replicas: 1
4217+
replicas: {{ .KubernetesDashboard.Replicas }}
42184218
revisionHistoryLimit: 10
42194219
selector:
42204220
matchLabels:

core/root/config/templates/cluster.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,7 @@ kubernetesDashboard:
12721272
adminPrivileges: true
12731273
insecureLogin: false
12741274
allowSkipLogin: false # Only set to true when using dashboard image version v1.10.1+
1275+
replicas: 1 # 1 is the default
12751276
enabled: true
12761277
# # Optional resource change for Dashboard can be done via using the resources block below and changing the values.
12771278
# # Values below are the default already if not set.

docs/advanced-topics/kubernetes-dashboard.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kubernetesDashboard:
77
adminPrivileges: true
88
insecureLogin: false
99
allowSkipLogin: false # Only set to true when using dashboard image version v1.10.1+
10+
replicas: 1 # 1 is the default
1011
enabled: true
1112
resources:
1213
requests:

0 commit comments

Comments
 (0)