mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
commit
8d06c84ac4
@ -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