Traefik和现有的AWS经典负载平衡器

发布于 2025-01-25 12:10:10 字数 147 浏览 4 评论 0 原文

我在EC2上有一个工作的K8S群集,带有经典的负载平衡器(端口443)。现在,我试图在我的群集中设置Traefik,为此我使用官方的舵图。但是我找不到一种使用现有的负载平衡器并防止Traefik创建自己的负载平衡器的方法。

如何让Traefik使用现有的负载平衡器?

I have a working k8s cluster on EC2 with a classic load balancer (Port 443). Now I am trying to set up Traefik in my cluster, for which I am using the official helm chart. But I can't find a way to use my existing load balancer and prevent Traefik from creating its own load balancer.

How can I get Traefik to use the existing load balancer?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幼儿园老大 2025-02-01 12:10:10

也许您可以将服务类型更改为 nodeport ,而不是 loadbalancer

expose nodeport 在trefik服务上,请

ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
      nodePort: 30080
    - name: https
      port: 443
      protocol: TCP
      targetPort: https
      nodePort: 30081

在:

Maybe you can change the service type to NodePort instead of the Loadbalancer

expose nodeport on trefik service accordingly

ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
      nodePort: 30080
    - name: https
      port: 443
      protocol: TCP
      targetPort: https
      nodePort: 30081

Read more at : https://medium.com/@jainishshah17/use-pre-created-existing-loadbalancer-to-expose-your-kubernetes-service-407fb65cb416

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文