From f450f5f4543e8da77c14a224b4c7b82bc6f51304 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Tue, 6 Nov 2018 13:32:22 +0000 Subject: [PATCH] Special case for `us-east-1` - use only 2 AZs by default --- pkg/eks/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/eks/api.go b/pkg/eks/api.go index c1fbf73cad..81a27ff963 100644 --- a/pkg/eks/api.go +++ b/pkg/eks/api.go @@ -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")