gpt4 book ai didi

kubernetes - GKE 是否支持使用静态 ip 的 nginx-ingress?

转载 作者:行者123 更新时间:2023-12-02 11:27:46 25 4
gpt4 key购买 nike

我一直在使用 Google Cloud 入口。还部署了 nginx-ingress并尝试在 GKE 中使用静态 IP 地址进行设置。

  • 我们可以在同一个集群中同时使用 Google Cloud ingress 和 nginx-ingress 吗?
  • 我们如何将 nginx-ingress 与 static-ip 一起使用?

  • 谢谢

    最佳答案

    如果您使用 helm 部署 nginx-ingress。

    首先创建一个静态IP地址。在 google 中,网络负载均衡器 (NLB) 仅支持区域静态 IP:

    gcloud compute addresses create my-static-ip-address --region us-east4

    然后以ip地址作为loadBalancerIP参数安装nginx-helm
    helm install --name nginx-ingress stable/nginx-ingress --namespace my-namespace --set controller.service.loadBalancerIP=35.186.172.1

    关于kubernetes - GKE 是否支持使用静态 ip 的 nginx-ingress?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48763805/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com