From 6a44da9d011f2f6bf870d03099c24cfb146e8a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mich=C3=A9e=20Lengronne?= Date: Thu, 6 Feb 2025 12:57:26 +0100 Subject: [PATCH] test discovery.uri with ip --- charts/trino/templates/configmap-coordinator.yaml | 2 +- charts/trino/templates/configmap-worker.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/trino/templates/configmap-coordinator.yaml b/charts/trino/templates/configmap-coordinator.yaml index dd190d5a..4963c2d6 100644 --- a/charts/trino/templates/configmap-coordinator.yaml +++ b/charts/trino/templates/configmap-coordinator.yaml @@ -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 }} diff --git a/charts/trino/templates/configmap-worker.yaml b/charts/trino/templates/configmap-worker.yaml index 71ff72cc..07d0b240 100644 --- a/charts/trino/templates/configmap-worker.yaml +++ b/charts/trino/templates/configmap-worker.yaml @@ -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 }}