From 591682ab8705d81ea5b13ae9b3f3f2ebba229d90 Mon Sep 17 00:00:00 2001 From: dandds Date: Fri, 17 Jan 2020 19:29:24 -0500 Subject: [PATCH] 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 --- deploy/azure/azure.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/azure/azure.yml b/deploy/azure/azure.yml index 1300ed34..81612d5d 100644 --- a/deploy/azure/azure.yml +++ b/deploy/azure/azure.yml @@ -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