EKS Nginx NLB http > https 리디렉션 적용 QnA

IT/EKS 2022. 6. 16. 15:49
반응형

EKS NLB의 TLS 통신의 오프로드. TLS 터미네이션이 LB레벨에서 끝나도록 되어있댜

만약 80번으로 호출한다면, NLB를 바이패스해서 진입하고, 그게 Nginx 파드까지 요청이 들어온댜

이 떄, 이걸 https로 강제로 타게끔 해줘야 한댜 (http > https)

 

---------------------------------------------------------------------------------------------------

 

https://stackoverflow.com/questions/49856754/nginx-ingress-too-many-redirects-when-force-ssl-is-enabled

 

nginx-ingress: Too many redirects when force-ssl is enabled

I am setting up my first ingress in kubernetes using nginx-ingress. I set up the ingress-nginx load balancer service like so: { "kind": "Service", "apiVersion": "v1", "metadata": { "name...

stackoverflow.com

 

앞서서 밑에 이 글로 Nginx를 만들었다면, 위 리디렉션 가이드를 컨피그맵에 적용하여서 리디렉션을 쉽게 적용할 수 있댜 

https://devloper-angmond.tistory.com/96

 

Nginx NLB TLS적용 가이드

조건 : 현재 쿠버네티스 클러스터에 Nginx I.C가 없기를 권장함. 기존에 다른 Nginx IC가 있다면 네이밍을 별개로 분리독립할 것을 권함 본 템플릿에서 몇개의 수정부분이 있는데, 해당 부분은 가이

devloper-angmond.tistory.com

생각보다 다들 ssl force redirect 등등의 삼천포로 빠지는 글들이 굉장히 많았는데... 

답 자체가 템플릿을 좀만 더 들여다보면 확인할 수 있댜...

 

 

ssl redirect 어노테이션 및 기타 가이드는 오피셜 페이지를 참조해보도록 하쟈

https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/#backend-services-upstreams

 

Advanced Configuration with Annotations | NGINX Ingress Controller

Advanced Configuration with Annotations This document explains how to use advanced features using annotations. The Ingress resource only allows you to use basic NGINX features – host and path-based routing and TLS termination. Thus, advanced features lik

docs.nginx.com

 

반응형

설정

트랙백

댓글