提交 d01cdf3b 编写于 作者: J Jeff 提交者: zryfish

add node ip to router

上级 e8c1d6fb
......@@ -78,7 +78,7 @@ func getMasterNodeIp() string {
func addLoadBalancerIp(service *corev1.Service) {
// append selected node ip as loadbalancer ingress ip
if len(service.Status.LoadBalancer.Ingress) == 0 {
if service.Spec.Type != corev1.ServiceTypeLoadBalancer && len(service.Status.LoadBalancer.Ingress) == 0 {
rip := getMasterNodeIp()
if len(rip) == 0 {
glog.Info("can not get node ip")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册