Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify external-dns deployment #481

Merged
merged 1 commit into from
May 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions chart/k8gb/templates/external-dns/external-dns-route53.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{{ if .Values.ns1.enabled }}
{{ if or .Values.ns1.enabled .Values.route53.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: external-dns-ns1
name: external-dns
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: external-dns-ns1
app: external-dns
template:
metadata:
labels:
app: external-dns-ns1
app: external-dns
spec:
serviceAccountName: external-dns
securityContext:
Expand All @@ -25,23 +25,32 @@ spec:
args:
- --source=crd
- --domain-filter={{ .Values.k8gb.edgeDNSZone }} # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones
{{- if .Values.ns1.enabled }}
- --annotation-filter=k8gb.absa.oss/dnstype=ns1 # filter out only relevant DNSEntrypoints
- --provider=ns1
- --txt-owner-id=k8gb-{{ .Values.k8gb.dnsZone }}-{{ .Values.k8gb.clusterGeoTag }}
{{- if .Values.ns1.endpoint }}
- --ns1-endpoint={{ .Values.ns1.endpoint }}
{{- end }}
{{- if .Values.ns1.ignoreSSL }}
- --ns1-ignoressl
{{- end }}
- --txt-owner-id=k8gb-{{ .Values.k8gb.dnsZone }}-{{ .Values.k8gb.clusterGeoTag }}
{{- end }}
{{- if .Values.route53.enabled }}
- --annotation-filter=k8gb.absa.oss/dnstype=route53 # filter out only relevant DNSEntrypoints
- --provider=aws
- --txt-owner-id=k8gb-{{ .Values.route53.hostedZoneID }}-{{ .Values.k8gb.clusterGeoTag }}
{{- end }}
- --policy=sync # enable full synchronization including record removal
- --log-level=debug # debug only
{{- if .Values.ns1.enabled }}
env:
- name: NS1_APIKEY
valueFrom:
secretKeyRef:
name: ns1
key: apiKey
{{- end }}
resources:
requests:
memory: "32Mi"
Expand Down