From 397c81a8d77b1364b9277ce22887232d2dc806bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20S=C3=A1gi-Kaz=C3=A1r?= Date: Sun, 21 Oct 2018 18:20:15 +0200 Subject: [PATCH] Replace builtin SSL redirection with manual one (#415) As outlined in this (https://github.com/containous/traefik/issues/1957) issue SSL redirection with PathPrefixStrip does not work really well. A solution was provided in this (https://github.com/containous/traefik/pull/3631) PR, released in 1.7, but it didn't really solve the issue. In fact, there were several subsequent issues opened (https://github.com/containous/traefik/issues/3999, https://github.com/containous/traefik/issues/3876) but they got closed. Another issue was opened in the Traefik repo: https://github.com/containous/traefik/issues/4085 Until then this workaround provides the same functionality. --- pipeline-cluster-monitor/Chart.yaml | 2 +- pipeline-cluster-monitor/values.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pipeline-cluster-monitor/Chart.yaml b/pipeline-cluster-monitor/Chart.yaml index 04dd21d5..5dae11fb 100644 --- a/pipeline-cluster-monitor/Chart.yaml +++ b/pipeline-cluster-monitor/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: A Helm chart for Kubernetes name: pipeline-cluster-monitor -version: 0.1.8 +version: 0.1.9 keywords: - pipeline - cluster diff --git a/pipeline-cluster-monitor/values.yaml b/pipeline-cluster-monitor/values.yaml index 0ac9e253..5254a461 100644 --- a/pipeline-cluster-monitor/values.yaml +++ b/pipeline-cluster-monitor/values.yaml @@ -305,7 +305,9 @@ grafana: annotations: kubernetes.io/ingress.class: traefik traefik.frontend.rule.type: PathPrefixStrip - traefik.ingress.kubernetes.io/ssl-redirect: "true" + traefik.ingress.kubernetes.io/redirect-permanent: "true" + traefik.ingress.kubernetes.io/redirect-regex: ^http://(.*) + traefik.ingress.kubernetes.io/redirect-replacement: https://$1 path: /grafana hosts: - localhost