【发布时间】:2020-04-15 16:43:42
【问题描述】:
我正在尝试阅读此处的 Istio 快速入门指南,但在步骤 confirm the app is accessible from outside the cluster 时遇到了问题。
我在 Mac 上运行 docker for desktop 而不是 minikube。
我也在工作中使用代理,但即使我绕过代理,我也会收到以下错误:
$ curl http://${GATEWAY_URL}/productpage -v
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connection failed
* connect to 127.0.0.1 port 30489 failed: Connection refused
* Failed to connect to 127.0.0.1 port 30489: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 30489: Connection refused
pod 正在运行:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
details-v1-c5b5f496d-ccw5f 2/2 Running 0 18h
productpage-v1-c7765c886-xm2jd 2/2 Running 0 18h
ratings-v1-f745cf57b-5df2q 2/2 Running 0 18h
reviews-v1-75b979578c-jtc5l 2/2 Running 0 18h
reviews-v2-597bf96c8f-g7bzd 2/2 Running 0 18h
reviews-v3-54c6c64795-gbqqj 2/2 Running 0 18h
我可以在 pod 中卷曲它:
$ kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"
<title>Simple Bookstore App</title>
我不确定我做错了什么。非常感谢任何指导!
【问题讨论】:
-
如果有人想对我投反对票,请解释原因,以便我解决。
标签: docker kubernetes istio docker-desktop docker-for-mac