Display client source IP correctly in logs.

In order to display the client source IP, we need to make a
configuration change to the cluster. Setting externalTrafficPolicy to
"Local" preserves the client IP, per:

https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
This commit is contained in:
dandds 2020-01-17 19:29:24 -05:00
parent ad70042774
commit 591682ab87

View File

@ -309,6 +309,7 @@ metadata:
namespace: atat
spec:
loadBalancerIP: 13.92.235.6
externalTrafficPolicy: Local
ports:
- port: 80
targetPort: 8342
@ -329,6 +330,7 @@ metadata:
namespace: atat
spec:
loadBalancerIP: 23.100.24.41
externalTrafficPolicy: Local
ports:
- port: 80
targetPort: 8343