如何将EKS NLB目标组协议更改为https?

0

【以下的问题经过翻译处理】 你好,如何将目标组协议更改为https?侦听器是TLS,证书绑定正常,但是后端转发到Pod没有工作,我无法找到更改协议从tcp(当前)到https的注释,你可以分享正确的注释吗?

annotations: service.beta.kubernetes.io/aws-load-balancer-internal: "true" service.beta.kubernetes.io/aws-load-balancer-type: "nlb-ip" service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip" service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "https" service.beta.kubernetes.io/aws-load-balancer-healthcheck-healthy-threshold: "2" service.beta.kubernetes.io/aws-load-balancer-healthcheck-unhealthy-threshold: "2" service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:xxxxxxxxxxxx

profile picture
專家
已提問 6 個月前檢視次數 12 次
1 個回答
0

【以下的回答经过翻译处理】 你好,

NLB Listeners支持以下协议:TCP、TLS、UDP、TCP_UDP。

注解service.beta.kubernetes.io/aws-load-balancer-backend-protocol指定是否在负载均衡器和kubernetes pod之间的后端流量中使用TLS。

如果您将后端协议指定为ssl,在TLS侦听器的情况下,NLB会使用TLS连接将流量发送到您的kubernetes pod。

您可以指定ssltcp(默认)。不支持HTTPS。如果您想要配置HTTPS listener,您需要实现Kubernetes ingress以创建ALB而不是NLB和Kubernetes Service。

请参考文档了解更多信息。

profile picture
專家
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南