Skip to content

haproxy loadbalancer container in a Kubernetes cluster -- DON'T USE, this was but a silly experiment. Just install an ingress controller 8-P

Notifications You must be signed in to change notification settings

multi-io/k8s-nodeport-lb

Repository files navigation

nodeport-lb

This image is meant to be run in a Kubernetes cluster. It runs a haproxy instance that's listening on some TCP ports and load balancing incoming HTTP connections to a bunch of nodes in the cluster.

Configuration works mainly via the RUN parameters of the container (which runs a wrapper script which runs haproxy). You'll usually change those to suit your needs.

Example: The parameters: ["-t", "^node", "-p", "80:30000"] start the proxy listening on port 80, load balancing all incoming requests to port 30000 on all nodes whose names match the pattern ^node.

The wrapper will notice (via the K8S API) when the set of nodes changes and adjust the proxy accordingly.

About

haproxy loadbalancer container in a Kubernetes cluster -- DON'T USE, this was but a silly experiment. Just install an ingress controller 8-P

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages