下面是本教程: mac上的https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/
我已经完成了所有的步骤
hello-python-6c7b478cf5-hxfvb 1/1 Running 0 114s
hello-python-6c7b478cf5-rczp9 1/1 Running 0 114s
hello-python-6c7b478cf5-snww5 1/1 Running 0 114s
hello-python-6c7b478cf5-wr8gf 1/1 Running 0 114s我不能访问本地主机:6000在我的浏览器。我收到一个错误:
The web page at http://localhost:6000/ might be temporarily down or it may have moved permanently to a new web address.但我可以卷曲:
app git:(master) ✗ curl localhost:6000
Hello from Python!%发布于 2020-11-13 06:36:07
如果您正在minikube上运行这个演示应用程序,那么minikube不支持LB外部IP。您可以使用以下命令:kubectl get svc -o wide检查挂起状态。
解决方案: LoadBalancer服务也得到一个节点端口,这样您就可以通过:$ minikube service my-loadbalancer-service-name打开浏览器访问服务,或者通过add标志将服务URL输出到终端。您应该看到这样的内容:$ minikube service hello-python-service --url --这个命令将给出url输出。
https://stackoverflow.com/questions/64812253
复制相似问题