Skip to content

Commit

Permalink
Special case for us-east-1 - use only 2 AZs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Nov 6, 2018
1 parent f744ded commit f450f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/eks/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ func (c *ClusterProvider) SetAvailabilityZones(given []string) error {
if len(given) == 0 {
logger.Debug("determining availability zones")
azSelector := az.NewSelectorWithDefaults(c.Provider.EC2())
if c.Spec.Region == api.EKSRegionUSEast1 {
azSelector = az.NewSelectorWithMinRequired(c.Provider.EC2())
}
zones, err := azSelector.SelectZones(c.Spec.Region)
if err != nil {
return errors.Wrap(err, "getting availability zones")
Expand Down

0 comments on commit f450f5f

Please sign in to comment.