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

Make dashboard replicas configurable #1539

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions builtin/files/cluster.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,7 @@ kubeSystemNamespaceLabels:
kubernetesDashboard:
adminPrivileges: true
insecureLogin: false
replicas: 1
enabled: true
# # Optional resource change for Dashboard can be done via using the resources block below and changing the values.
# # Values below are the default already if not set.
Expand Down
2 changes: 1 addition & 1 deletion builtin/files/userdata/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -4297,7 +4297,7 @@ write_files:
name: kubernetes-dashboard
namespace: kube-system
spec:
replicas: 1
replicas: {{ .KubernetesDashboard.Replicas }}
revisionHistoryLimit: 10
selector:
matchLabels:
Expand Down
1 change: 1 addition & 0 deletions docs/advanced-topics/kubernetes-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kubernetesDashboard:
adminPrivileges: true
insecureLogin: false
enabled: true
replicas: 1
resources:
requests:
cpu: 100m
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func NewDefaultCluster() *Cluster {
AdminPrivileges: true,
InsecureLogin: false,
Enabled: true,
Replicas: 1,
},
Kubernetes: Kubernetes{
Authentication: KubernetesAuthentication{
Expand Down Expand Up @@ -541,6 +542,7 @@ type KubernetesDashboard struct {
AdminPrivileges bool `yaml:"adminPrivileges"`
InsecureLogin bool `yaml:"insecureLogin"`
Enabled bool `yaml:"enabled"`
Replicas int `yaml:"replicas,omitempty"`
ComputeResources ComputeResources `yaml:"resources,omitempty"`
}

Expand Down