webts
August 16, 2018, 5:19am
1
is there any documentation on how to configure internal load balancing?
in the Networking Master Class Meetup its mentioned the default internal load balancer algorithm is round robin however this can be changed.
has anyone succeeded in doing this on a custom cluster?
thanks
If you are using the NGINX Ingress - the default - you can configure it with a ConfigMap and Annotations.
# ConfigMaps
ConfigMaps allow you to decouple configuration artifacts from image content to keep containerized applications portable.
The ConfigMap API resource stores configuration data as key-value pairs. The data provides the configurations for system
components for the nginx-controller. Before you can begin using a config-map it must be [deployed](../../deploy/README.md/#deploying-the-config-map).
In order to overwrite nginx-controller configuration values as seen in [config.go](https://github.com/kubernetes/ingress-nginx/blob/master/internal/ingress/controller/config/config.go),
you can add key-value pairs to the data section of the config-map. For Example:
```yaml
data:
map-hash-bucket-size: "128"
ssl-protocols: SSLv2
```
!!! Important
The key and values in a ConfigMap can only be strings.
This means that we want a value with boolean values we need to quote the values, like "true" or "false".
Same for numbers, like "100".
This file has been truncated. show original