mirror of https://github.com/kubernetes/kops.git
Honor minSize/maxSize for ASGs for master
Normally we expect the size to be 1, but it turns out there is an exception - in the case when we want to suspend a cluster. So honor the values if the user sets them. Thanks for spotting @sekka1 Fix #403
This commit is contained in:
parent
3aa3a0e857
commit
352bc52a9f
|
@ -16,9 +16,9 @@ launchConfiguration/{{ $m.Name }}.masters.{{ ClusterName }}:
|
|||
spotPrice: "{{ $m.Spec.MaxPrice }}"
|
||||
{{ end }}
|
||||
|
||||
autoscalingGroup/{{ $m.Name}}.masters.{{ ClusterName }}:
|
||||
minSize: 1
|
||||
maxSize: 1
|
||||
autoscalingGroup/{{ $m.Name }}.masters.{{ ClusterName }}:
|
||||
minSize: {{ $m.Spec.MinSize }}
|
||||
maxSize: {{ $m.Spec.MaxSize }}
|
||||
subnets:
|
||||
{{ range $z := $m.Spec.Zones }}
|
||||
- subnet/{{ $z }}.{{ ClusterName }}
|
||||
|
|
Loading…
Reference in New Issue