GKE是否支持带有静态ip的Nginx-ingress? [英] Does GKE support nginx-ingress with static ip?

查看:105
本文介绍了GKE是否支持带有静态ip的Nginx-ingress?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Google Cloud Ingress.还部署了nginx-ingress并尝试在GKE中使用static-ip地址进行设置.

I have been using the Google Cloud ingress. Also deployed the nginx-ingress and trying to setup using static-ip address in GKE.

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

谢谢

推荐答案

如果您使用掌舵来部署nginx-ingress.

In case you're using helm to deploy nginx-ingress.

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

First create a static IP address. In google the Network Loadbalancers (NLBs) only support regional static IPs:

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

然后使用IP地址作为loadBalancerIP参数安装nginx-helm

Then install nginx-helm with the ip address as a loadBalancerIP parameter

helm install --name nginx-ingress stable/nginx-ingress --namespace my-namespace --set controller.service.loadBalancerIP=35.186.172.1

这篇关于GKE是否支持带有静态ip的Nginx-ingress?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆