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
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=google`| When using the Cloudflare provider with the Custom Hostnames, specify which Cerrtificate Authority will be used by default. (default: google, options: google, ssl_com, lets_encrypt) |
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 (optional) |
97
98
|`--coredns-prefix="/skydns/"`| When using the CoreDNS provider, specify the prefix name |
98
99
|`--akamai-serviceconsumerdomain=""`| When using the Akamai provider, specify the base URL (required when --provider=akamai and edgerc-path not specified) |
99
100
|`--akamai-client-token=""`| When using the Akamai provider, specify the client token (required when --provider=akamai and edgerc-path not specified) |
Copy file name to clipboardExpand all lines: docs/tutorials/cloudflare.md
+12-3Lines changed: 12 additions & 3 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
env:
133
134
- name: CF_API_KEY
@@ -204,6 +205,7 @@ spec:
204
205
- --provider=cloudflare
205
206
- --cloudflare-proxied # (optional) enable the proxy feature of Cloudflare (DDOS protection, CDN...)
206
207
- --cloudflare-dns-records-per-page=5000 # (optional) configure how many DNS records to fetch per request
208
+
- --cloudflare-regional-services # (optional) enable the regional hostname feature that configure which region can decrypt HTTPS requests
207
209
- --cloudflare-region-key="eu" # (optional) configure which region can decrypt HTTPS requests
208
210
env:
209
211
- name: CF_API_KEY
@@ -303,10 +305,17 @@ Using the `external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"` annotati
303
305
304
306
## Setting cloudflare-region-key to configure regional services
305
307
306
-
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. A list of available options can be seen [here](https://developers.cloudflare.com/data-localization/regional-services/get-started/).
307
-
Currently, requires SuperAdmin or Admin role.
308
+
Automatic configuration of Cloudflare Regional Services is enabled by the --cloudflare-regional-services flag.
309
+
Regional Services restrict which data centers can decrypt and serve HTTPS traffic.
310
+
A default region can be defined using the --cloudflare-region-key flag.
311
+
312
+
A list of available regions can be seen [here](https://developers.cloudflare.com/data-localization/regional-services/get-started/).
313
+
314
+
Using the `external-dns.alpha.kubernetes.io/cloudflare-region-key` annotation on your ingress, you can specify the region for that record.
308
315
309
-
If not set the value will default to `global`.
316
+
An empty string will result in no regional hostname configured.
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")
536
538
app.Flag("cloudflare-custom-hostnames-certificate-authority", "When using the Cloudflare provider with the Custom Hostnames, specify which Cerrtificate Authority will be used by default. (default: google, options: google, ssl_com, lets_encrypt)").Default("google").EnumVar(&cfg.CloudflareCustomHostnamesCertificateAuthority, "google", "ssl_com", "lets_encrypt")
537
539
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)
538
-
app.Flag("cloudflare-region-key", "When using the Cloudflare provider, specify the region (default: earth)").StringVar(&cfg.CloudflareRegionKey)
540
+
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)
541
+
app.Flag("cloudflare-region-key", "When using the Cloudflare provider, specify the default region for Regional Services (optional)").StringVar(&cfg.CloudflareRegionKey)
539
542
app.Flag("coredns-prefix", "When using the CoreDNS provider, specify the prefix name").Default(defaultConfig.CoreDNSPrefix).StringVar(&cfg.CoreDNSPrefix)
540
543
app.Flag("akamai-serviceconsumerdomain", "When using the Akamai provider, specify the base URL (required when --provider=akamai and edgerc-path not specified)").Default(defaultConfig.AkamaiServiceConsumerDomain).StringVar(&cfg.AkamaiServiceConsumerDomain)
541
544
app.Flag("akamai-client-token", "When using the Akamai provider, specify the client token (required when --provider=akamai and edgerc-path not specified)").Default(defaultConfig.AkamaiClientToken).StringVar(&cfg.AkamaiClientToken)
0 commit comments