diff --git a/charts/caddy-ingress-controller/templates/loadbalancer.yaml b/charts/caddy-ingress-controller/templates/loadbalancer.yaml index 0a0f75b..ff206cb 100644 --- a/charts/caddy-ingress-controller/templates/loadbalancer.yaml +++ b/charts/caddy-ingress-controller/templates/loadbalancer.yaml @@ -15,6 +15,7 @@ metadata: spec: type: "LoadBalancer" loadBalancerIP: {{ .Values.loadBalancer.loadBalancerIP }} #Deprecated in Kubernetes v1.24 + externalTrafficPolicy: {{ .Values.loadBalancer.externalTrafficPolicy }} ports: - name: http port: 80 diff --git a/charts/caddy-ingress-controller/values.yaml b/charts/caddy-ingress-controller/values.yaml index 211025c..b6f0226 100644 --- a/charts/caddy-ingress-controller/values.yaml +++ b/charts/caddy-ingress-controller/values.yaml @@ -42,6 +42,8 @@ ingressController: loadBalancer: # Deprecated in Kubernetes v1.24 loadBalancerIP: + # Set to 'Local' to maintain the client's IP on inbound connections + externalTrafficPolicy: annotations: # service.beta.kubernetes.io/aws-load-balancer-type: # service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: