2023-08-14 15:59:15 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-08-19 18:31:30 +00:00
|
|
|
name: external-dns-kspace
|
2024-08-14 07:04:41 +00:00
|
|
|
namespace: bind
|
2023-08-14 15:59:15 +00:00
|
|
|
spec:
|
|
|
|
revisionHistoryLimit: 0
|
|
|
|
selector:
|
|
|
|
matchLabels: &selectorLabels
|
|
|
|
app.kubernetes.io/name: external-dns
|
|
|
|
domain: kspace.ee
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels: *selectorLabels
|
|
|
|
spec:
|
|
|
|
serviceAccountName: external-dns
|
2024-08-24 20:25:40 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
|
|
|
requests:
|
|
|
|
cpu: 2m
|
|
|
|
memory: 35Mi
|
2023-08-14 15:59:15 +00:00
|
|
|
containers:
|
2023-08-19 18:31:30 +00:00
|
|
|
- name: external-dns
|
2024-07-26 10:16:49 +00:00
|
|
|
image: registry.k8s.io/external-dns/external-dns:v0.14.2
|
2023-08-19 18:31:30 +00:00
|
|
|
envFrom:
|
2024-08-14 07:04:41 +00:00
|
|
|
- secretRef:
|
|
|
|
name: tsig-secret
|
2023-08-19 18:31:30 +00:00
|
|
|
args:
|
|
|
|
- --events
|
|
|
|
- --registry=noop
|
|
|
|
- --provider=rfc2136
|
|
|
|
- --source=ingress
|
|
|
|
- --source=service
|
|
|
|
- --source=crd
|
|
|
|
- --domain-filter=kspace.ee
|
|
|
|
- --rfc2136-tsig-axfr
|
|
|
|
- --rfc2136-host=172.20.0.2
|
|
|
|
- --rfc2136-port=53
|
|
|
|
- --rfc2136-zone=kspace.ee
|
|
|
|
- --rfc2136-tsig-keyname=readwrite
|
|
|
|
- --rfc2136-tsig-secret-alg=hmac-sha512
|
|
|
|
- --rfc2136-tsig-secret=$(TSIG_SECRET)
|
|
|
|
# https://github.com/kubernetes-sigs/external-dns/issues/2446
|
2023-08-14 15:59:15 +00:00
|
|
|
---
|
|
|
|
apiVersion: externaldns.k8s.io/v1alpha1
|
|
|
|
kind: DNSEndpoint
|
|
|
|
metadata:
|
|
|
|
name: kspace
|
2024-08-14 07:04:41 +00:00
|
|
|
namespace: bind
|
2023-08-14 15:59:15 +00:00
|
|
|
spec:
|
|
|
|
endpoints:
|
2024-08-14 07:04:41 +00:00
|
|
|
- dnsName: kspace.ee
|
|
|
|
recordTTL: 300
|
|
|
|
recordType: SOA
|
|
|
|
targets:
|
|
|
|
- "ns1.k-space.ee. hostmaster.k-space.ee. (1 300 300 300 300)"
|
|
|
|
- dnsName: kspace.ee
|
|
|
|
recordTTL: 300
|
|
|
|
recordType: NS
|
|
|
|
targets:
|
|
|
|
- ns1.k-space.ee
|
|
|
|
- ns2.k-space.ee
|
|
|
|
- dnsName: ns1.k-space.ee
|
|
|
|
recordTTL: 300
|
|
|
|
recordType: A
|
|
|
|
targets:
|
|
|
|
- 193.40.103.2
|
|
|
|
- dnsName: ns2.k-space.ee
|
|
|
|
recordTTL: 300
|
|
|
|
recordType: A
|
|
|
|
targets:
|
|
|
|
- 62.65.250.2
|