Skip to content

Commit

Permalink
Set LOCALSTACK_HOST from service name
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Nov 14, 2023
1 parent edda95a commit 6d0bdff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/localstack/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ spec:
{{- end }}
- name: LOCALSTACK_K8S_SERVICE_NAME
value: {{ include "localstack.fullname" . }}
{{- if and (or (eq $.Values.service.type "NodePort") (eq $.Values.service.type "LoadBalancer")) (not (empty .Values.service.edgeService.nodePort)) }}
- name: LOCALSTACK_HOST
value: {{ include "localstack.fullname" . }}:{{ .Values.service.edgeService.nodePort }}
{{- else }}
- name: LOCALSTACK_HOST
value: {{ include "localstack.fullname" . }}
{{- end }}
- name: LOCALSTACK_K8S_NAMESPACE
valueFrom:
fieldRef:
Expand Down

0 comments on commit 6d0bdff

Please sign in to comment.