From e2ffed17ab6992dc42590c0cc34a44f57dc98135 Mon Sep 17 00:00:00 2001 From: Tim Stoop Date: Tue, 27 Mar 2018 21:40:01 +0200 Subject: [PATCH] Set an externalTrafficPolicy. (#4353) --- stable/traefik/Chart.yaml | 2 +- stable/traefik/README.md | 1 + stable/traefik/templates/service.yaml | 3 +++ stable/traefik/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index b8835a7475..34eddbb63e 100755 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: traefik -version: 1.25.2 +version: 1.26.0 appVersion: 1.5.4 description: A Traefik based Kubernetes ingress controller with Let's Encrypt support keywords: diff --git a/stable/traefik/README.md b/stable/traefik/README.md index a2a436ec8e..67dcc0e9c3 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -91,6 +91,7 @@ The following table lists the configurable parameters of the Traefik chart and t | `serviceType` | A valid Kubernetes service type | `LoadBalancer` | | `loadBalancerIP` | An available static IP you have reserved on your cloud platform | None | | `loadBalancerSourceRanges` | list of IP CIDRs allowed access to load balancer (if supported) | None | +| `externalTrafficPolicy` | Set the externalTrafficPolicy in the Service to either Cluster or Local | `Cluster` | | `replicas` | The number of replicas to run; __NOTE:__ Full Traefik clustering with leader election is not yet supported, which can affect any configured Let's Encrypt setup; see Clustering section | `1` | | `cpuRequest` | Initial share of CPU requested per Traefik pod | `100m` | | `memoryRequest` | Initial share of memory requested per Traefik pod | `20Mi` | diff --git a/stable/traefik/templates/service.yaml b/stable/traefik/templates/service.yaml index 5d663eda6d..7f744c6c77 100644 --- a/stable/traefik/templates/service.yaml +++ b/stable/traefik/templates/service.yaml @@ -29,6 +29,9 @@ spec: - {{ $cidr }} {{- end }} {{- end }} + {{- if .Values.externalTrafficPolicy }} + externalTrafficPolicy: {{ .Values.externalTrafficPolicy }} + {{- end }} selector: app: {{ template "traefik.name" . }} release: {{ .Release.Name }} diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index a0720f9ede..e069c94ffa 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -5,6 +5,7 @@ imageTag: 1.5.4 serviceType: LoadBalancer loadBalancerIP: # loadBalancerSourceRanges: [] +externalTrafficPolicy: Cluster replicas: 1 cpuRequest: 100m memoryRequest: 20Mi