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
Categories:
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