Preserve client source IP for Kubernetes ingress? Preserve client source IP for Kubernetes ingress? kubernetes kubernetes

Preserve client source IP for Kubernetes ingress?


For preserving Ingress source IP, see these steps: https://cloud.ibm.com/docs/containers?topic=containers-comm-ingress-annotations#preserve_source_ip_classic

Essentially you do the same thing that you've described, except that you edit the existing alb service.


steps:

  • kubectl edit svc <ALB_ID> -n kube-system
  • Under spec, change the value of externalTrafficPolicy from Cluster to Local.