|
|
|
|
|
by r_lee
14 days ago
|
|
you can do that, e.g. by using a pod exposed with a NodePort for it where it just uses the host IP/port you configure and forwards to pods (the internal network) using whatever config HAProxy needs or use the Gateway/Ingress abstractions that basically do this automatically, where you just expose services via them, and they handle the routing looks like the above is documented at: https://www.haproxy.com/documentation/kubernetes-ingress/ the nodeport way would basically be what you'd do with compose, where you map the host (node) ports to the container ones |
|