From ea5aae13b56840dc2df8cf0dcc7b63c928de9f1c Mon Sep 17 00:00:00 2001 From: Romain Poirot <32273490+Redlinkk@users.noreply.github.com> Date: Fri, 12 Oct 2018 09:43:39 +0200 Subject: [PATCH] [stable/traefik] Add a parameter to set acme.onHostRule in traefik.toml (#8358) Signed-off-by: Romain Poirot --- stable/traefik/Chart.yaml | 2 +- stable/traefik/README.md | 1 + stable/traefik/templates/configmap.yaml | 2 +- stable/traefik/values.yaml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stable/traefik/Chart.yaml b/stable/traefik/Chart.yaml index 9621039b2c..22d35800bb 100755 --- a/stable/traefik/Chart.yaml +++ b/stable/traefik/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: traefik -version: 1.50.0 +version: 1.51.0 appVersion: 1.7.2 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 caeab5419f..0acd4977f0 100644 --- a/stable/traefik/README.md +++ b/stable/traefik/README.md @@ -126,6 +126,7 @@ The following table lists the configurable parameters of the Traefik chart and t | `acme.dnsProvider.name` | Which DNS provider to use. See [here](https://github.com/xenolf/lego/tree/master/providers/dns) for the list of possible values. | `nil` | | `acme.dnsProvider.$name` | The configuration environment variables (encoded as a secret) needed for the DNS provider to do DNS challenge. See [here](#example-aws-route-53). | `{}` | | `acme.email` | Email address to be used in certificates obtained from Let's Encrypt | `admin@example.com` | +| `acme.onHostRule` | Whether to generate a certificate for each frontend with Host rule | `true` | | `acme.staging` | Whether to get certs from Let's Encrypt's staging environment | `true` | | `acme.logging` | Display debug log messages from the ACME client library | `false` | | `acme.domains.enabled` | Enable certificate creation by default for specific domain | `false` | diff --git a/stable/traefik/templates/configmap.yaml b/stable/traefik/templates/configmap.yaml index d84b40c1cc..1812c62d05 100644 --- a/stable/traefik/templates/configmap.yaml +++ b/stable/traefik/templates/configmap.yaml @@ -226,7 +226,7 @@ data: storage = "/acme/acme.json" {{- end }} entryPoint = "https" - onHostRule = true + onHostRule = {{ .Values.acme.onHostRule }} {{- if .Values.acme.staging }} caServer = "https://acme-staging-v02.api.letsencrypt.org/directory" {{- end }} diff --git a/stable/traefik/values.yaml b/stable/traefik/values.yaml index f5b4a8ea97..459af0a9d5 100644 --- a/stable/traefik/values.yaml +++ b/stable/traefik/values.yaml @@ -131,6 +131,7 @@ kvprovider: acme: enabled: false email: admin@example.com + onHostRule: true staging: true logging: false # Configure a Let's Encrypt certificate to be managed by default.