본문 바로가기
빅데이터/trino

[trino] trino chart 에서 https 적용 방법

by hs_seo 2024. 1. 9.

trino를 chart를 이용하여 설치하고, 인그레스에 tls 를 설정하면 https 를 이용하여 통신할 수 있습니다. 하지만 인그레스에만 설정을 하게 되면 코디네이터와 워커의 내부 통신은 http를 이용하게 되고, 쿼리를 실행할 때 반환되는 nextUri 값이 http로 반환되어 오류가 발생합니다.

 

trino에서는 이것을 처리하위한 설정을 제공합니다. config.properties 파일에 다음 설정을 추가하면 내부 통신을 반환할 때 https로 설정하여 반환합니다.

 

http-server.process-forwarded=true

 

https://trino.io/docs/current/security/tls.html#use-a-load-balancer-to-terminate-tls-https

 

TLS and HTTPS — Trino 435 Documentation

TLS and HTTPS Trino runs with no security by default. This allows you to connect to the server using URLs that specify the HTTP protocol when using the Trino CLI, the Web UI, or other clients. This topic describes how to configure your Trino server to use

trino.io

 

반응형