mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
Link CRD-source example from DNS providers
This commit is contained in:
parent
cc937a36aa
commit
c9de76be16
@ -990,63 +990,4 @@ Because those limits are in place, `aws-batch-change-size` can be set to any val
|
|||||||
|
|
||||||
## Using CRD source to manage DNS records in AWS
|
## Using CRD source to manage DNS records in AWS
|
||||||
|
|
||||||
[CRD source](https://github.com/kubernetes-sigs/external-dns/blob/master/docs/contributing/crd-source.md) provides a generic mechanism and declarative way to manage DNS records in AWS using external-dns.
|
Please refer to the [CRD source documentation](../sources/crd.md#example) for more information.
|
||||||
|
|
||||||
**Not all the record types are enabled by default so we must enable the required record types using `--managed-record-types`.**
|
|
||||||
|
|
||||||
```bash
|
|
||||||
external-dns --source=crd --provider=aws \
|
|
||||||
--domain-filter=example.com \
|
|
||||||
--managed-record-types=A \
|
|
||||||
--managed-record-types=CNAME \
|
|
||||||
--managed-record-types=NS
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `A`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplearecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: example.com
|
|
||||||
recordTTL: 60
|
|
||||||
recordType: A
|
|
||||||
targets:
|
|
||||||
- 10.0.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `CNAME`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplecnamerecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: test-a.example.com
|
|
||||||
recordTTL: 300
|
|
||||||
recordType: CNAME
|
|
||||||
targets:
|
|
||||||
- example.com
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `NS`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: ns-record
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: zone.example.com
|
|
||||||
recordTTL: 300
|
|
||||||
recordType: NS
|
|
||||||
targets:
|
|
||||||
- ns1.example.com
|
|
||||||
- ns2.example.com
|
|
||||||
```
|
|
@ -310,63 +310,4 @@ If not set the value will default to `global`.
|
|||||||
|
|
||||||
## Using CRD source to manage DNS records in Cloudflare
|
## Using CRD source to manage DNS records in Cloudflare
|
||||||
|
|
||||||
[CRD source](https://github.com/kubernetes-sigs/external-dns/blob/master/docs/contributing/crd-source.md) provides a generic mechanism and declarative way to manage DNS records in Cloudflare using external-dns.
|
Please refer to the [CRD source documentation](../sources/crd.md#example) for more information.
|
||||||
|
|
||||||
**Not all the record types are enabled by default so we must enable the required record types using `--managed-record-types`.**
|
|
||||||
|
|
||||||
```bash
|
|
||||||
external-dns --source=crd --provider=cloudflare \
|
|
||||||
--domain-filter=example.com \
|
|
||||||
--managed-record-types=A \
|
|
||||||
--managed-record-types=CNAME \
|
|
||||||
--managed-record-types=NS
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `A`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplearecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: example.com
|
|
||||||
recordTTL: 60
|
|
||||||
recordType: A
|
|
||||||
targets:
|
|
||||||
- 10.0.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `CNAME`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplecnamerecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: test-a.example.com
|
|
||||||
recordTTL: 300
|
|
||||||
recordType: CNAME
|
|
||||||
targets:
|
|
||||||
- example.com
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `NS`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: ns-record
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: zone.example.com
|
|
||||||
recordTTL: 300
|
|
||||||
recordType: NS
|
|
||||||
targets:
|
|
||||||
- ns1.example.com
|
|
||||||
- ns2.example.com
|
|
||||||
```
|
|
@ -176,99 +176,4 @@ $ dig @${PDNS_FQDN} echo.example.com.
|
|||||||
|
|
||||||
## Using CRD source to manage DNS records in PowerDNS
|
## Using CRD source to manage DNS records in PowerDNS
|
||||||
|
|
||||||
[CRD source](https://github.com/kubernetes-sigs/external-dns/blob/master/docs/contributing/crd-source.md) provides a generic mechanism and declarative way to manage DNS records in PowerDNS using external-dns.
|
Please refer to the [CRD source documentation](../sources/crd.md#example) for more information.
|
||||||
|
|
||||||
Not all the record types are enabled by default so we can enable the required record types using `--managed-record-types`.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
external-dns --source=crd --provider=pdns \
|
|
||||||
--pdns-server={{ pdns-api-url }} \
|
|
||||||
--pdns-api-key={{ pdns-api-key }} \
|
|
||||||
--domain-filter=example.com \
|
|
||||||
--managed-record-types=A \
|
|
||||||
--managed-record-types=CNAME \
|
|
||||||
--managed-record-types=TXT \
|
|
||||||
--managed-record-types=MX \
|
|
||||||
--managed-record-types=SRV
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `A`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplearecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: example.com
|
|
||||||
recordTTL: 60
|
|
||||||
recordType: A
|
|
||||||
targets:
|
|
||||||
- 10.0.0.1
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `CNAME`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplecnamerecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: test-a.example.com
|
|
||||||
recordTTL: 300
|
|
||||||
recordType: CNAME
|
|
||||||
targets:
|
|
||||||
- example.com
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `TXT`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: exampletxtrecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: example.com
|
|
||||||
recordTTL: 3600
|
|
||||||
recordType: TXT
|
|
||||||
targets:
|
|
||||||
- '"v=spf1 include:spf.protection.example.com include:example.org -all"'
|
|
||||||
- '"apple-domain-verification=XXXXXXXXXXXXX"'
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `MX`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplemxrecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: example.com
|
|
||||||
recordTTL: 3600
|
|
||||||
recordType: MX
|
|
||||||
targets:
|
|
||||||
- "10 mailhost1.example.com"
|
|
||||||
```
|
|
||||||
|
|
||||||
* Example for record type `SRV`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
apiVersion: externaldns.k8s.io/v1alpha1
|
|
||||||
kind: DNSEndpoint
|
|
||||||
metadata:
|
|
||||||
name: examplesrvrecord
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- dnsName: _service._tls.example.com
|
|
||||||
recordTTL: 180
|
|
||||||
recordType: SRV
|
|
||||||
targets:
|
|
||||||
- "100 1 443 service.example.com"
|
|
||||||
```
|
|
Loading…
Reference in New Issue
Block a user