本文介绍了如何为Google Container Engine(GKE)服务设置静态IP地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一点背景:我有一个使用gRPC与客户端应用进行通信的Go服务。 gRPC使用HTTP2,因此我无法使用Google App Engine或Google Cloud HTTP负载均衡器。我需要从互联网到我的Go应用程序的原始TCP负载平衡。

A little bit of background: I have a Go service that uses gRPC to communicate with client apps. gRPC uses HTTP2, so I can't use Google App Engine or the Google Cloud HTTP Load Balancer. I need raw TCP load balancing from the internet to my Go application.

我浏览GKE教程并阅读各种文档,但找不到任何方法我的应用程序是静态IP地址。那么如何获得一个静态IP附加到在GKE中运行的东西?

I went through the GKE tutorials and read the various docs and I can't find any way to give my application a static IP address. So how do you get a static IP attached to something running in GKE?

推荐答案

这在kubernetes v1.0中不受支持。 x,但是在v1.1.x中,它将以 service.spec.loadBalancerIP 的形式提供。只要您拥有该IP,我们就会使用它。

This is not supported in kubernetes v1.0.x but in v1.1.x it will be available as service.spec.loadBalancerIP. As long as you actually own that IP we will use it.

这篇关于如何为Google Container Engine(GKE)服务设置静态IP地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 23:04