Preserving source IP address
Introduction#
This guide explains how to preserve the client's source IP address for requests going to your cluster.
This is useful when you want to allow requests only from a defined IP range, or track client IPs for analytics.
Preserving Client's Source IP Address#
On your Service of type LoadBalancer, add the uses-proxyprotocol annotation:
$ kubectl annotate service my-service load-balancer.hetzner.cloud/uses-proxyprotocol="true"
Configuring a Hetzner Load Balancer
Configure a Hetzner Load Balancer to expose your workload effectively. Annotate the Service for correct IP assignment. Example manifest provided for guidance.
Configuring Egress Gateway with Static Node IP
Learn how to route pod egress traffic through a specific Kubernetes node with a static public IP using Cilium Egress Gateway on Syself Autopilot.