mirror of https://github.com/kubernetes/kops.git
Default CrossZoneLoadBalancing to false if not set
This commit is contained in:
parent
c18f30a400
commit
4485b115f4
|
|
@ -153,11 +153,12 @@ func (b *APILoadBalancerBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
Tags: tags,
|
||||
}
|
||||
|
||||
// Only set if specified so we don't change existing logic
|
||||
if lbSpec.CrossZoneLoadBalancing != nil {
|
||||
elb.CrossZoneLoadBalancing = &awstasks.LoadBalancerCrossZoneLoadBalancing{
|
||||
Enabled: lbSpec.CrossZoneLoadBalancing,
|
||||
}
|
||||
if lbSpec.CrossZoneLoadBalancing == nil {
|
||||
lbSpec.CrossZoneLoadBalancing = fi.Bool(false)
|
||||
}
|
||||
|
||||
elb.CrossZoneLoadBalancing = &awstasks.LoadBalancerCrossZoneLoadBalancing{
|
||||
Enabled: lbSpec.CrossZoneLoadBalancing,
|
||||
}
|
||||
|
||||
switch lbSpec.Type {
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-bastionuserdata-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "bastionuserdata.example.com"
|
||||
|
|
|
|||
|
|
@ -223,7 +223,8 @@ resource "aws_elb" "api-complex-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "complex.example.com"
|
||||
|
|
|
|||
|
|
@ -332,7 +332,8 @@ resource "aws_elb" "api-existingsg-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "existingsg.example.com"
|
||||
|
|
|
|||
|
|
@ -248,7 +248,8 @@ resource "aws_elb" "api-private-shared-subnet-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "private-shared-subnet.example.com"
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-privatecalico-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privatecalico.example.com"
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-privatecanal-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privatecanal.example.com"
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-privatedns1-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privatedns1.example.com"
|
||||
|
|
|
|||
|
|
@ -263,7 +263,8 @@ resource "aws_elb" "api-privatedns2-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privatedns2.example.com"
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-privateflannel-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privateflannel.example.com"
|
||||
|
|
|
|||
|
|
@ -273,7 +273,8 @@ resource "aws_elb" "api-privatekopeio-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privatekopeio.example.com"
|
||||
|
|
|
|||
|
|
@ -268,7 +268,8 @@ resource "aws_elb" "api-privateweave-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "privateweave.example.com"
|
||||
|
|
|
|||
|
|
@ -253,7 +253,8 @@ resource "aws_elb" "api-unmanaged-example-com" {
|
|||
timeout = 5
|
||||
}
|
||||
|
||||
idle_timeout = 300
|
||||
cross_zone_load_balancing = false
|
||||
idle_timeout = 300
|
||||
|
||||
tags = {
|
||||
KubernetesCluster = "unmanaged.example.com"
|
||||
|
|
|
|||
Loading…
Reference in New Issue