A Quick Note On How To Preserve Client Source IP’s on K8s Services

namespace=ingress-nginx
servicename=ingress-nginx-controller
kubectl edit svc $servicename -n $namespace

# edit this value from Cluster to Local - esc+wq+enter to save
  externalTrafficPolicy: Local

Leave a Reply

Your email address will not be published. Required fields are marked *