Kubernetes minikube, cannot expose service on public ip range

烂漫一生 提交于 2019-12-06 07:28:54

First, check the nodeport that is assigned to your service:

$ kubectl get svc test-flask-deploy
NAME                CLUSTER-IP   EXTERNAL-IP   PORT(S)          AGE
test-flask-deploy   10.0.0.76    <nodes>       8080:30341/TCP   4m

Now you should be able to access it on 192.168.xxxx:30341 or whatever your minikubeIP:nodeport is.

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