Skip to content

Commit

Permalink
Merge pull request #363 from smarterclayton/lb
Browse files Browse the repository at this point in the history
Tune AWS load balancers to be consistent with other platforms
  • Loading branch information
openshift-merge-robot committed Feb 26, 2020
2 parents 478aedd + 9d36e8b commit 6a0269e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/operator/controller/ingress/load_balancer_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var (
"service.beta.kubernetes.io/aws-load-balancer-internal": "0.0.0.0/0",
},
configv1.AzurePlatformType: {
// Azure load balancers are not customizable and are set to (2 fail @ 5s interval, 2 healthy)
"service.beta.kubernetes.io/azure-load-balancer-internal": "true",
},
// There are no required annotations for this platform as of
Expand Down Expand Up @@ -116,7 +117,14 @@ func desiredLoadBalancerService(ci *operatorv1.IngressController, deploymentRef
}
if infraConfig.Status.Platform == configv1.AWSPlatformType {
service.Annotations[awsLBProxyProtocolAnnotation] = "*"
// Set the load balancer for AWS to be as aggressive as Azure (2 fail @ 5s interval, 2 healthy)
service.Annotations["service.beta.kubernetes.io/aws-load-balancer-healthcheck-interval"] = "5"
service.Annotations["service.beta.kubernetes.io/aws-load-balancer-healthcheck-timeout"] = "4"
service.Annotations["service.beta.kubernetes.io/aws-load-balancer-healthcheck-unhealthy-threshold"] = "2"
service.Annotations["service.beta.kubernetes.io/aws-load-balancer-healthcheck-healthy-threshold"] = "2"
}
// Azure load balancers are not customizable and are set to (2 fail @ 5s interval, 2 healthy)
// GCP load balancers are not customizable and are set to (3 fail @ 8s interval, 1 healthy)

if infraConfig.Status.Platform == configv1.IBMCloudPlatformType {
service.Annotations[iksLBProxyProtocolAnnotations] = "public"
Expand Down

0 comments on commit 6a0269e

Please sign in to comment.