mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
* docs: add BIND9 on Kubernetes with Kind tutorial for rfc2136 provider Add a step-by-step guide for deploying BIND9 and ExternalDNS inside a local Kind cluster, covering forward (A) and reverse (PTR) DNS zones with TSIG authentication. Signed-off-by: Seena Fallah <seenafallah@gmail.com> * docs: apply suggestions for bind9 tutorial Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com> --------- Signed-off-by: Seena Fallah <seenafallah@gmail.com> Co-authored-by: Michel Loiseleur <97035654+mloiseleur@users.noreply.github.com>
39 lines
772 B
YAML
39 lines
772 B
YAML
# kubectl apply -f docs/snippets/tutorials/rfc2136/fixtures.yaml
|
|
# kubectl delete -f docs/snippets/tutorials/rfc2136/fixtures.yaml
|
|
---
|
|
apiVersion: externaldns.k8s.io/v1alpha1
|
|
kind: DNSEndpoint
|
|
metadata:
|
|
name: test-a-records
|
|
namespace: default
|
|
spec:
|
|
endpoints:
|
|
- dnsName: app.example.local
|
|
recordTTL: 300
|
|
recordType: A
|
|
targets:
|
|
- 192.168.49.10
|
|
- dnsName: api.example.local
|
|
recordTTL: 300
|
|
recordType: A
|
|
targets:
|
|
- 192.168.49.20
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nginx-rfc2136
|
|
namespace: default
|
|
labels:
|
|
svc: test-svc
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: svc.example.local
|
|
spec:
|
|
type: LoadBalancer
|
|
ports:
|
|
- port: 80
|
|
name: http
|
|
targetPort: 80
|
|
selector:
|
|
app: nginx
|