k8s // on-premises bare-metal load-balance

ingress-ds | sample-app

the question

how to make an frontend application available to a true load-balancer, e.g. HAProxy, sitting outside the farm? note there should be multiple IPs, ideally one per node or if that’s a big farm, at least a few nodes.

the answers

there are few options

  1. NodePort with static user-assigned TCP port (e.g. 30080)
  2. ingress as DaemonSet + hostNetwork HostPort
  3. ingress as DaemonSet + NodePort
  4. play with MetalLB then LoadBalancer

resources

https://kubernetes.github.io/ingress-nginx/deploy/baremetal/

https://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun