Preserving source IP address
Introduction#
This guide will explain how you can preserve the client's source IP address of the requests going to your cluster.
This can be useful in scenarios where you want to allow requests only from a defined IP range, or track the IPs for analytics.
Preserving Client's Source IP Address#
In your service of type load balancer, 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.