Kubernetes ingress¶
Ingress-nginx¶
Migration to Gateway API¶
- Ingress NGINX: Statement from the Kubernetes Steering and Security Response Committees
- Ingress NGINX Retirement: What You Need to Know
- see also gateway-api.md
Check if an ingress controller is installed:
See all configured ingresses:
Get real-ip header¶
Other resources, non of them worked for my setup though:
- Make Traefik Forward Real Client IP
- K8s docs: Create an External Load Balancer / Preserving the client source IP
- Getting Real Client IP with k3s
Traffic in front of the cluster ingress¶
- Haven't found a way to pass the real-ip header when using a TCP router with
TLS passthrough - passHostHeader
is only available for http services, not for tcp services,
of course because
Header is a concept from HTTP protocol. TCP does not have a concept of an HTTP header
- Until then, services that require real-ip (i.e. Plausible) need to stay on an external node with static IP
Exposing arbitrary TCP and UDP ports¶
nginx-ingress by default can only expose http+https ports.
You can use the tcp and udp helm chart config options
like this:
or this:
BUT you can mix them, if will produce the following error when applying a mixed TCP+UDP helmfile:
Error: Service "oas-test-proxy-nginx-ingress-controller" is invalid: spec.ports: Invalid value: … cannot create an external load balancer with mix protocols
Related issues: