Unless configured otherwise, the Consul API Gateway controller creates a load balancer for each Gateway
resource. Since we're in Kubernetes, we do this by spinning up a Service
resource with type: LoadBalancer
.
Each of the major cloud providers allow you to configure the resulting load balancer by specifying one or more annotations on the Kubernetes Service
object. You may not add these annotations directly to the Service
as the controller is creating it on your behalf; however, the Consul API Gateway controller will copy specific annotations from the Gateway
object - which you do control - to the Service
object that it creates. To do so, you must specify the list of keys for annotations that you would like copied in values.yaml
here. You must then add those annotations to the Gateway
. The A