带有外部IP的Google Container Engine,不带负载均衡器 [英] Google Container Engine with external IP, without load balancer
问题描述
我能够连接到Kubernetes的pod中运行的应用程序,但这是基于负载均衡器网关的,基于此处的文档:
I am able to connect to the app running in my pod in Kubernetes, but that was with a load balancer gateway, based on the documentation here:
https://cloud.google.com/container-engine/docs/tutorials/http-balancer
有什么方法可以在Google Container Engine上运行网络服务器,而不必每月为单独的负载均衡器支付18美元?
Is there any way to run a web server on Google Container Engine without having to pay $18/month for a separate load balancer?
推荐答案
尝试将type: Nodeport
用于服务.这将在所有节点上打开一个端口.然后,您可以使用将流量定向到该端口.请参阅: https://kubernetes.io/docs/concepts/services-networking/service /
Try using type: Nodeport
for the service. This will open a port on all your nodes. You can use then direct traffic to that port. Refer: https://kubernetes.io/docs/concepts/services-networking/service/
这篇关于带有外部IP的Google Container Engine,不带负载均衡器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!