简体   繁体   English

带有外部IP的Google Container Engine,没有负载均衡器

[英]Google Container Engine with external IP, without load balancer

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: 我能够连接到Kubernetes中我的pod中运行的应用程序,但这是基于以下文档的负载均衡器网关:

https://cloud.google.com/container-engine/docs/tutorials/http-balancer https://cloud.google.com/container-engine/docs/tutorials/http-balancer

Is there any way to run a web server on Google Container Engine without having to pay $18/month for a separate load balancer? 有没有办法在Google Container Engine上运行Web服务器,而无需为每个单独的负载均衡器支付18美元/月?

Try using type: Nodeport for the service. 尝试使用type: Nodeport作为服务。 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/ 参考: https//kubernetes.io/docs/concepts/services-networking/service/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM