This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree 4 files changed +27
-8
lines changed
controlplane/config/templates
4 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -4143,11 +4143,11 @@ write_files:
4143
4143
name: cluster-autoscaler
4144
4144
resources:
4145
4145
limits:
4146
- cpu: 100m
4147
- memory: 300Mi
4146
+ cpu: {{ if .Addons.ClusterAutoscaler.ComputeResources.Limits.Cpu }}{{ .Addons.ClusterAutoscaler.ComputeResources.Limits.Cpu }}{{ else }} 100m{{ end }}
4147
+ memory: {{ if .Addons.ClusterAutoscaler.ComputeResources.Limits.Memory }}{{ .Addons.ClusterAutoscaler.ComputeResources.Limits.Memory }}{{ else }} 300Mi{{ end }}
4148
4148
requests:
4149
- cpu: 100m
4150
- memory: 300Mi
4149
+ cpu: {{ if .Addons.ClusterAutoscaler.ComputeResources.Requests.Cpu }}{{ .Addons.ClusterAutoscaler.ComputeResources.Requests.Cpu }}{{ else }} 100m{{ end }}
4150
+ memory: {{ if .Addons.ClusterAutoscaler.ComputeResources.Requests.Memory }}{{ .Addons.ClusterAutoscaler.ComputeResources.Requests.Memory }}{{ else }} 300Mi{{ end }}
4151
4151
command:
4152
4152
- ./cluster-autoscaler
4153
4153
- --v=4
Original file line number Diff line number Diff line change @@ -1352,6 +1352,14 @@ addons:
1352
1352
# If you want to run CA on worker nodes, turn on `worker.nodePools[].clusterAutoscalerSupport.enabled` for the node pool.
1353
1353
clusterAutoscaler :
1354
1354
enabled : false
1355
+ resources :
1356
+ # Increase these values substantially if running a cluster of 50+ nodes
1357
+ limits :
1358
+ cpu : 100m
1359
+ memory : 300Mi
1360
+ requests :
1361
+ cpu : 100m
1362
+ memory : 300Mi
1355
1363
# Options below can be used to inject custom settings for the autoscaler.
1356
1364
# Sensible defaults are already configured in the controller-cloud-config but if you wish to override them simply
1357
1365
# add them here and they'll take precedence.
Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ type Addons struct {
10
10
}
11
11
12
12
type ClusterAutoscalerSupport struct {
13
- Enabled bool `yaml:"enabled"`
14
- Options map [string ]string `yaml:"options"`
15
- UnknownKeys `yaml:",inline"`
13
+ Enabled bool `yaml:"enabled"`
14
+ ComputeResources ComputeResources `yaml:"resources,omitempty"`
15
+ Options map [string ]string `yaml:"options"`
16
+ UnknownKeys `yaml:",inline"`
16
17
}
17
18
18
19
type Rescheduler struct {
@@ -33,3 +34,13 @@ type Prometheus struct {
33
34
type APIServerAggregator struct {
34
35
Enabled bool `yaml:"enabled"`
35
36
}
37
+
38
+ type ComputeResources struct {
39
+ Limits ResourceQuota `yaml:"limits,omitempty"`
40
+ Requests ResourceQuota `yaml:"requests,omitempty"`
41
+ }
42
+
43
+ type ResourceQuota struct {
44
+ Cpu string `yaml:"cpu"`
45
+ Memory string `yaml:"memory"`
46
+ }
Original file line number Diff line number Diff line change @@ -1642,7 +1642,7 @@ experimental:
1642
1642
image:
1643
1643
repo: quay.io/uswitch/kiam
1644
1644
tag: v2.6
1645
- sessionDuration: 30m
1645
+ sessionDuration: 30m
1646
1646
serverAddresses:
1647
1647
serverAddress: localhost
1648
1648
agentAddress: kiam-server
You can’t perform that action at this time.
0 commit comments