From 0958d142a2b140a073004cc4a0ba3e6eea2b5954 Mon Sep 17 00:00:00 2001 From: materemias Date: Wed, 19 Dec 2018 21:30:11 +0100 Subject: [PATCH] [stable/external-dns] add an option to enable Cloudflare proxy (DDOS protection, CDN...) (#10141) * add proxied option for cloudflare Signed-off-by: Mate Remias * add cloudflare.proxied to values with default true Signed-off-by: Mate Remias * added description in readme Signed-off-by: Mate Remias * bumped version Signed-off-by: Mate Remias * bumped version Signed-off-by: Mate Remias --- stable/external-dns/Chart.yaml | 2 +- stable/external-dns/README.md | 1 + stable/external-dns/templates/deployment.yaml | 3 +++ stable/external-dns/values.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/external-dns/Chart.yaml b/stable/external-dns/Chart.yaml index d3f857958c..7ad452c296 100644 --- a/stable/external-dns/Chart.yaml +++ b/stable/external-dns/Chart.yaml @@ -3,7 +3,7 @@ description: Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services name: external-dns -version: 1.2.0 +version: 1.3.0 appVersion: 0.5.9 home: https://github.com/kubernetes-incubator/external-dns sources: diff --git a/stable/external-dns/README.md b/stable/external-dns/README.md index 86b0e6a4ea..e928c81d0d 100644 --- a/stable/external-dns/README.md +++ b/stable/external-dns/README.md @@ -35,6 +35,7 @@ The following table lists the configurable parameters of the external-dns chart | `azure.secretName` | Set the secret created for the SP for azure, should contain an azure.json file | `""` | | `cloudflare.apiKey` | `CF_API_KEY` to set in the environment (optional). | `""` | | `cloudflare.email` | `CF_API_EMAIL` to set in the environment (optional). | `""` | +| `cloudflare.proxied` | enable the proxy feature of Cloudflare (DDOS protection, CDN...) (optional). | `true` | | `domainFilters` | Limit possible target zones by domain suffixes (optional). | `[]` | | `extraArgs` | Optional object of extra args, as `name`: `value` pairs. Where the name is the command line arg to external-dns. | `{}` | | `extraEnv` | Optional array of extra environment variables. Supply a `name` property and either `value` of `valueFrom` for each. | `[]` | diff --git a/stable/external-dns/templates/deployment.yaml b/stable/external-dns/templates/deployment.yaml index 61a46786c5..7e5a64be50 100755 --- a/stable/external-dns/templates/deployment.yaml +++ b/stable/external-dns/templates/deployment.yaml @@ -61,6 +61,9 @@ spec: - --{{ $key }} {{- end }} {{- end }} + {{- if .Values.cloudflare.proxied }} + - --cloudflare-proxied + {{- end }} {{- if .Values.aws.zoneType }} - --aws-zone-type={{ .Values.aws.zoneType }} {{- end }} diff --git a/stable/external-dns/values.yaml b/stable/external-dns/values.yaml index 86c08b90aa..825a34162a 100644 --- a/stable/external-dns/values.yaml +++ b/stable/external-dns/values.yaml @@ -36,6 +36,7 @@ azure: cloudflare: apiKey: "" email: "" + proxied: true # When using the Google provider, specify the Google project (required when provider=google) google: project: ""