You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add flag to enable regional hostname feature
- support deletion of regional hostname on annotation edit
- correctly support differences detection with cloudflare state
- increased tests coverage
Co-authored-by: Michel Loiseleur <[email protected]>
Copy file name to clipboardExpand all lines: docs/flags.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,8 @@
93
93
|`--cloudflare-custom-hostnames-min-tls-version=1.0`| When using the Cloudflare provider with the Custom Hostnames, specify which Minimum TLS Version will be used by default. (default: 1.0, options: 1.0, 1.1, 1.2, 1.3) |
94
94
|`--cloudflare-custom-hostnames-certificate-authority=none`| When using the Cloudflare provider with the Custom Hostnames, specify which Certificate Authority will be used. A value of none indicates no Certificate Authority will be sent to the Cloudflare API (default: none, options: google, ssl_com, lets_encrypt, none) |
95
95
|`--cloudflare-dns-records-per-page=100`| When using the Cloudflare provider, specify how many DNS records listed per page, max possible 5,000 (default: 100) |
96
-
|`--cloudflare-region-key=CLOUDFLARE-REGION-KEY`| When using the Cloudflare provider, specify the region (default: earth) |
96
+
|`--[no-]cloudflare-regional-services`| When using the Cloudflare provider, specify if Regional Services feature will be used (default: disabled) |
97
+
|`--cloudflare-region-key=CLOUDFLARE-REGION-KEY`| When using the Cloudflare provider, specify the default region for Regional Services. Any value other than an empty string will enable the Regional Services feature (optional) |
97
98
|`--cloudflare-record-comment=""`| When using the Cloudflare provider, specify the comment for the DNS records (default: '') |
98
99
|`--coredns-prefix="/skydns/"`| When using the CoreDNS provider, specify the prefix name |
99
100
|`--akamai-serviceconsumerdomain=""`| When using the Akamai provider, specify the base URL (required when --provider=akamai and edgerc-path not specified) |
Copy file name to clipboardExpand all lines: docs/tutorials/cloudflare.md
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,7 @@ spec:
128
128
- --provider=cloudflare
129
129
- --cloudflare-proxied # (optional) enable the proxy feature of Cloudflare (DDOS protection, CDN...)
130
130
- --cloudflare-dns-records-per-page=5000 # (optional) configure how many DNS records to fetch per request
131
+
- --cloudflare-regional-services # (optional) enable the regional hostname feature that configure which region can decrypt HTTPS requests
131
132
- --cloudflare-region-key="eu" # (optional) configure which region can decrypt HTTPS requests
132
133
- --cloudflare-record-comment="provisioned by external-dns" # (optional) configure comments for provisioned records; <=100 chars for free zones; <=500 chars for paid zones
133
134
env:
@@ -205,6 +206,7 @@ spec:
205
206
- --provider=cloudflare
206
207
- --cloudflare-proxied # (optional) enable the proxy feature of Cloudflare (DDOS protection, CDN...)
207
208
- --cloudflare-dns-records-per-page=5000 # (optional) configure how many DNS records to fetch per request
209
+
- --cloudflare-regional-services # (optional) enable the regional hostname feature that configure which region can decrypt HTTPS requests
208
210
- --cloudflare-region-key="eu" # (optional) configure which region can decrypt HTTPS requests
209
211
- --cloudflare-record-comment="provisioned by external-dns" # (optional) configure comments for provisioned records; <=100 chars for free zones; <=500 chars for paid zones
Using the `external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"` annotation on your ingress, you can specify if the proxy feature of Cloudflare should be enabled for that record. This setting will override the global `--cloudflare-proxied` setting.
305
307
306
-
## Setting cloudflare-region-key to configure regional services
308
+
## Setting cloudlfare regional services
307
309
308
-
Using the `external-dns.alpha.kubernetes.io/cloudflare-region-key` annotation on your ingress, you can restrict which data centers can decrypt and serve HTTPS traffic.
310
+
With Cloudflare regional services you can restrict which data centers can decrypt and serve HTTPS traffic.
311
+
312
+
Configuration of Cloudflare Regional Services is enabled by the `--cloudflare-regional-services` flag.
313
+
A default region can be defined using the `--cloudflare-region-key` flag.
314
+
315
+
Using the `external-dns.alpha.kubernetes.io/cloudflare-region-key` annotation on your ingress, you can specify the region for that record.
316
+
317
+
An empty string will result in no regional hostname configured.
309
318
310
319
**Accepted values for region key include:**
311
320
312
-
-`earth` (default): All data centers (global)
313
321
-`eu`: European Union data centers only
314
322
-`us`: United States data centers only
315
323
-`ap`: Asia-Pacific data centers only
@@ -321,14 +329,11 @@ Using the `external-dns.alpha.kubernetes.io/cloudflare-region-key` annotation on
321
329
-`br`: Brazil data centers only
322
330
-`za`: South Africa data centers only
323
331
-`ae`: United Arab Emirates data centers only
324
-
-`global`: Alias for `earth`
325
332
326
333
For the most up-to-date list and details, see the [Cloudflare Regional Services documentation](https://developers.cloudflare.com/data-localization/regional-services/get-started/).
327
334
328
335
Currently, requires SuperAdmin or Admin role.
329
336
330
-
If not set the value will default to `global`.
331
-
332
337
## Setting cloudflare-custom-hostname
333
338
334
339
Automatic configuration of Cloudflare custom hostnames (using A/CNAME DNS records as custom origin servers) is enabled by the `--cloudflare-custom-hostnames` flag and the `external-dns.alpha.kubernetes.io/cloudflare-custom-hostname: <custom hostname>` annotation.
app.Flag("cloudflare-custom-hostnames-min-tls-version", "When using the Cloudflare provider with the Custom Hostnames, specify which Minimum TLS Version will be used by default. (default: 1.0, options: 1.0, 1.1, 1.2, 1.3)").Default("1.0").EnumVar(&cfg.CloudflareCustomHostnamesMinTLSVersion, "1.0", "1.1", "1.2", "1.3")
534
536
app.Flag("cloudflare-custom-hostnames-certificate-authority", "When using the Cloudflare provider with the Custom Hostnames, specify which Certificate Authority will be used. A value of none indicates no Certificate Authority will be sent to the Cloudflare API (default: none, options: google, ssl_com, lets_encrypt, none)").Default("none").EnumVar(&cfg.CloudflareCustomHostnamesCertificateAuthority, "google", "ssl_com", "lets_encrypt", "none")
535
537
app.Flag("cloudflare-dns-records-per-page", "When using the Cloudflare provider, specify how many DNS records listed per page, max possible 5,000 (default: 100)").Default(strconv.Itoa(defaultConfig.CloudflareDNSRecordsPerPage)).IntVar(&cfg.CloudflareDNSRecordsPerPage)
536
-
app.Flag("cloudflare-region-key", "When using the Cloudflare provider, specify the region (default: earth)").StringVar(&cfg.CloudflareRegionKey)
538
+
app.Flag("cloudflare-regional-services", "When using the Cloudflare provider, specify if Regional Services feature will be used (default: disabled)").Default(strconv.FormatBool(defaultConfig.CloudflareRegionalServices)).BoolVar(&cfg.CloudflareRegionalServices)
539
+
app.Flag("cloudflare-region-key", "When using the Cloudflare provider, specify the default region for Regional Services. Any value other than an empty string will enable the Regional Services feature (optional)").StringVar(&cfg.CloudflareRegionKey)
537
540
app.Flag("cloudflare-record-comment", "When using the Cloudflare provider, specify the comment for the DNS records (default: '')").Default("").StringVar(&cfg.CloudflareRecordComment)
538
541
539
542
app.Flag("coredns-prefix", "When using the CoreDNS provider, specify the prefix name").Default(defaultConfig.CoreDNSPrefix).StringVar(&cfg.CoreDNSPrefix)
0 commit comments