我能够连接到Kubernetes中我的pod中运行的应用程序,但这是基于以下文档的负载均衡器网关:
https://cloud.google.com/container-engine/docs/tutorials/http-balancer
有没有办法在Google Container Engine上运行Web服务器,而无需为每个单独的负载均衡器支付18美元/月?
我能够连接到Kubernetes中我的pod中运行的应用程序,但这是基于以下文档的负载均衡器网关:
https://cloud.google.com/container-engine/docs/tutorials/http-balancer
有没有办法在Google Container Engine上运行Web服务器,而无需为每个单独的负载均衡器支付18美元/月?
1 回答
尝试使用
type: Nodeport
进行服务 . 这将在您的所有节点上打开一个端口 . 您可以使用直接流量到该端口 . 参考:https://kubernetes.io/docs/concepts/services-networking/service/