|
1 | 1 | Cloudflare DNS Records
|
2 | 2 | ======================
|
3 |
| -`Cloudflare <https://www.cloudflare.com>`_ runs one of the largest authoritative DNS networks in the world. With an average of a few milliseconds query speed, DNS updates happen within seconds. |
| 3 | +`Cloudflare <https://www.cloudflare.com>`_ runs one of the largest authoritative DNS networks in the world. In order to resolve domain names for exposed services, KubeNow can optionally configure the Cloudflare dynamic DNS service, so that a base domain name will resolve to the edge nodes (or the master node if no edge node is deployed). |
4 | 4 |
|
5 |
| -Thus in order to resolve domain names for the Kubenow exposed services, the deployment script adds a wildcard record to the Cloudflare dynamic DNS service, such that a configurable base domain name will resolve to either the edge nodes or the master node when enabled to be working as an edge node. |
6 |
| - |
7 |
| -Cloudflare's settings can be changed within the `terraform.tfvars` created automatically when initializing a :doc:`deploy configuration directory <../getting_started/bootstrap>` by running:: |
8 |
| - |
9 |
| - kn init <your-provider> my_deployment |
10 |
| - |
11 |
| -Precisely, here below can be found an example of the configuration lines to be optionally tweaked in case a user had a different, dedicated Cloudflare account:: |
| 5 | +To configure the Cloudflare dynamic DNS service, it is sufficient to uncomment the following lines in the ``terraform.tfvars`` file, specifying credentials, domain and subdomain:: |
12 | 6 |
|
13 | 7 | # Cloudflare configuration (optional)
|
14 |
| - # use_cloudflare = "true" |
15 |
| - # cloudflare_email = "your-cloudflare-email" |
16 |
| - # cloudflare_token = "your-cloudflare-token" |
17 |
| - # cloudflare_domain = "your-domain-name" |
18 |
| - # cloudflare_subdomain = "your-subdomain-name" |
19 |
| - |
20 |
| -Thus it suffices to just decomment these lines and modify the above placeholders with others Cloudflare settings. Nevertheless, since for entry-level users it can be difficult to reserve a domain name and set it up with Cloudflare, it is possible to use NIP.IO instead. |
21 |
| - |
22 |
| -NIP.IO provides for an easy mechanism to resolve domain names without needing any configuration (e.g., foo.10.0.0.1.nip.io maps to 10.0.0.1, bar.10.0.0.2.nip.io maps to 10.0.0.2, etc.). |
| 8 | + use_cloudflare = "true" |
| 9 | + cloudflare_email = "your-cloudflare-email" |
| 10 | + cloudflare_token = "your-cloudflare-token" |
| 11 | + cloudflare_domain = "your-domain-name" |
| 12 | + cloudflare_subdomain = "your-subdomain-name" |
0 commit comments