Merge pull request #4583 from tobiabocchi/patch-1

Update cloudflare.md
This commit is contained in:
Kubernetes Prow Robot 2024-07-04 16:06:47 -07:00 committed by GitHub
commit 8d06c84ac4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ Then apply one of the following manifests file to deploy ExternalDNS.
Create a values.yaml file to configure ExternalDNS to use CloudFlare as the DNS provider. This file should include the necessary environment variables: Create a values.yaml file to configure ExternalDNS to use CloudFlare as the DNS provider. This file should include the necessary environment variables:
```shell ```yaml
provider: provider:
name: cloudflare name: cloudflare
env: env:
@ -75,7 +75,7 @@ env:
Use this in your values.yaml, if you are using API Token: Use this in your values.yaml, if you are using API Token:
```shell ```yaml
provider: provider:
name: cloudflare name: cloudflare
env: env:
@ -155,13 +155,13 @@ kind: ClusterRole
metadata: metadata:
name: external-dns name: external-dns
rules: rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["services","endpoints","pods"] resources: ["services","endpoints","pods"]
verbs: ["get","watch","list"] verbs: ["get","watch","list"]
- apiGroups: ["extensions","networking.k8s.io"] - apiGroups: ["extensions","networking.k8s.io"]
resources: ["ingresses"] resources: ["ingresses"]
verbs: ["get","watch","list"] verbs: ["get","watch","list"]
- apiGroups: [""] - apiGroups: [""]
resources: ["nodes"] resources: ["nodes"]
verbs: ["list", "watch"] verbs: ["list", "watch"]
--- ---
@ -270,7 +270,7 @@ will cause ExternalDNS to remove the corresponding DNS records.
Create the deployment and service: Create the deployment and service:
``` ```shell
$ kubectl create -f nginx.yaml $ kubectl create -f nginx.yaml
``` ```
@ -291,7 +291,7 @@ This should show the external IP address of the service as the A record for your
Now that we have verified that ExternalDNS will automatically manage Cloudflare DNS records, we can delete the tutorial's example: Now that we have verified that ExternalDNS will automatically manage Cloudflare DNS records, we can delete the tutorial's example:
``` ```shell
$ kubectl delete -f nginx.yaml $ kubectl delete -f nginx.yaml
$ kubectl delete -f externaldns.yaml $ kubectl delete -f externaldns.yaml
``` ```