Skip to content

Commit

Permalink
test discovery.uri with ip
Browse files Browse the repository at this point in the history
  • Loading branch information
micheelengronne committed Feb 6, 2025
1 parent 00be2b3 commit 6a44da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ data:
memory.heap-headroom-per-node={{ .Values.coordinator.config.memory.heapHeadroomPerNode }}
{{- end }}
{{- if .Values.server.config.https.internal }}
discovery.uri=https://localhost:{{ .Values.service.tlsPort }}
discovery.uri=https://${ENV:{{ template "trino.fullname" . | upper | | replace "-" "_" }}_PORT_{{ .Values.service.tlsPort }}_TCP_ADDR}:{{ .Values.service.tlsPort }}
{{- else }}
discovery.uri=http://localhost:{{ .Values.service.port }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/trino/templates/configmap-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data:
{{- end }}
{{- if .Values.server.config.https.internal }}
internal-communication.https.required=true
discovery.uri=https://{{ template "trino.fullname" . }}:{{ .Values.service.tlsPort }}
discovery.uri=https://${ENV:{{ template "trino.fullname" . | upper | | replace "-" "_" }}_PORT_{{ .Values.service.tlsPort }}_TCP_ADDR}:{{ .Values.service.tlsPort }}
http-server.https.enabled=true
http-server.https.port={{ .Values.service.tlsPort }}
{{- if .Values.server.config.https.only }}
Expand Down

0 comments on commit 6a44da9

Please sign in to comment.