Skip to content

Commit 49a088f

Browse files
committed
support for external-dns
1 parent 573c9c5 commit 49a088f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

helm/templates/frontend.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ kind: Service
155155
metadata:
156156
name: {{ .Values.frontend.name }}-external
157157
namespace: {{ .Release.Namespace }}
158+
{{- if .Values.frontend.fqdn }}
159+
annotations:
160+
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.frontend.fqdn }}"
161+
{{- end }}
158162
spec:
159163
type: LoadBalancer
160164
selector:

helm/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ frontend:
163163
create: true
164164
name: frontend
165165
externalService: true
166+
# If set then external-dns will attempt to create a record for the service
167+
fqdn: null
166168
cymbalBranding: false
167169
# One of: local, gcp, aws, azure, onprem, alibaba. When not set, defaults to "local" unless running in GKE, otherwise auto-sets to gcp.
168170
platform: local

0 commit comments

Comments
 (0)