Skip to content

Commit

Permalink
add ability to set DNS record as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson committed Aug 19, 2024
1 parent 3aa0bf7 commit 339683f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/tembo-ai/templates/inference-gateway/service-lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ metadata:
{{- include "tembo-ai.inferenceGateway.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.inferenceGateway.internalLoadBalancer.annotations | nindent 4 }}
{{- if .Values.inferenceGateway.internalLoadBalancer.route53.enabled }}
external-dns.alpha.kubernetes.io/hostname: {{ .Values.inferenceGateway.internalLoadBalancer.route53.recordName }}.{{ .Values.inferenceGateway.internalLoadBalancer.route53.zoneName }}
external-dns.alpha.kubernetes.io/ttl: {{ .Values.inferenceGateway.internalLoadBalancer.route53.ttl | quote }}
{{- end }}

spec:
type: LoadBalancer
ports:
Expand Down
4 changes: 4 additions & 0 deletions charts/tembo-ai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ inferenceGateway:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
service.beta.kubernetes.io/aws-load-balancer-scheme: internal
route53:
enabled: false
zoneName: ""
recordName: "inference-gateway"
port: 8080
args: []
command:
Expand Down

0 comments on commit 339683f

Please sign in to comment.