Google Container Engine with external IP, without load balancer

萝らか妹 提交于 2019-12-10 13:26:18

问题


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

Is there any way to run a web server on Google Container Engine without having to pay $18/month for a separate load balancer?


回答1:


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/



来源:https://stackoverflow.com/questions/44714406/google-container-engine-with-external-ip-without-load-balancer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!