mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-07 01:56:57 +02:00
Update cloudflare.md
Hey! I was trying out external-dns using cloudflare. I followed your docs and managed to deploy it successfully on my k3s cluster. While reading the docs and copying pasting the yaml files I noticed there was some inconsistencies with the indentation.. I am no kubernetes expert, I just fixed the problems that were not allowing me to deploy this service and checked the files using yamllint.com While I was at it I also noticed a few errors on the syntax highlighting for code blocks, some had shell where the content was yaml, I fixed those too.. I hope this helps, thank you for this amazing project!
This commit is contained in:
parent
8245b89891
commit
8728b25f71
@ -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:
|
||||
|
||||
```shell
|
||||
```yaml
|
||||
provider:
|
||||
name: cloudflare
|
||||
env:
|
||||
@ -75,7 +75,7 @@ env:
|
||||
|
||||
Use this in your values.yaml, if you are using API Token:
|
||||
|
||||
```shell
|
||||
```yaml
|
||||
provider:
|
||||
name: cloudflare
|
||||
env:
|
||||
@ -155,13 +155,13 @@ kind: ClusterRole
|
||||
metadata:
|
||||
name: external-dns
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
- apiGroups: [""]
|
||||
resources: ["services","endpoints","pods"]
|
||||
verbs: ["get","watch","list"]
|
||||
- apiGroups: ["extensions","networking.k8s.io"]
|
||||
- apiGroups: ["extensions","networking.k8s.io"]
|
||||
resources: ["ingresses"]
|
||||
verbs: ["get","watch","list"]
|
||||
- apiGroups: [""]
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["list", "watch"]
|
||||
---
|
||||
@ -270,7 +270,7 @@ will cause ExternalDNS to remove the corresponding DNS records.
|
||||
|
||||
Create the deployment and service:
|
||||
|
||||
```
|
||||
```shell
|
||||
$ 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:
|
||||
|
||||
```
|
||||
```shell
|
||||
$ kubectl delete -f nginx.yaml
|
||||
$ kubectl delete -f externaldns.yaml
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user