From c9de76be16dd6d69d4d7d3251fbfc570ecfd3962 Mon Sep 17 00:00:00 2001 From: juan-vg Date: Tue, 26 Nov 2024 09:47:07 +0100 Subject: [PATCH] Link CRD-source example from DNS providers --- docs/tutorials/aws.md | 61 +---------------------- docs/tutorials/cloudflare.md | 61 +---------------------- docs/tutorials/pdns.md | 97 +----------------------------------- 3 files changed, 3 insertions(+), 216 deletions(-) diff --git a/docs/tutorials/aws.md b/docs/tutorials/aws.md index 741c2aaf2..c9dfd997f 100644 --- a/docs/tutorials/aws.md +++ b/docs/tutorials/aws.md @@ -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 -[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. - -**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 -``` +Please refer to the [CRD source documentation](../sources/crd.md#example) for more information. \ No newline at end of file diff --git a/docs/tutorials/cloudflare.md b/docs/tutorials/cloudflare.md index 50b431724..1415dbf2c 100644 --- a/docs/tutorials/cloudflare.md +++ b/docs/tutorials/cloudflare.md @@ -310,63 +310,4 @@ If not set the value will default to `global`. ## 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. - -**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 -``` +Please refer to the [CRD source documentation](../sources/crd.md#example) for more information. \ No newline at end of file diff --git a/docs/tutorials/pdns.md b/docs/tutorials/pdns.md index d239c3f07..189f090c7 100644 --- a/docs/tutorials/pdns.md +++ b/docs/tutorials/pdns.md @@ -176,99 +176,4 @@ $ dig @${PDNS_FQDN} echo.example.com. ## 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. - -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" -``` \ No newline at end of file +Please refer to the [CRD source documentation](../sources/crd.md#example) for more information. \ No newline at end of file