Skip to content

Commit 3192982

Browse files
authored
Merge pull request #1 from DO-Solutions/lb-updates
Lb updates
2 parents 573c9c5 + 04462de commit 3192982

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

helm/templates/frontend.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ kind: Service
155155
metadata:
156156
name: {{ .Values.frontend.name }}-external
157157
namespace: {{ .Release.Namespace }}
158+
annotations:
159+
service.beta.kubernetes.io/do-loadbalancer-name: {{ .Release.Name }}
160+
service.beta.kubernetes.io/do-loadbalancer-type: "REGIONAL_NETWORK"
161+
{{- if .Values.frontend.fqdn }}
162+
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.frontend.fqdn }}"
163+
{{- end }}
158164
spec:
159165
type: LoadBalancer
160166
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)