0

我正在尝试使用 Minikube 和 Istio 运行本地 kubernetes 集群。我按照这里的 istio 文档中的说明进行操作:https ://istio.io/docs/tasks/installing-istio.html

然后我按照步骤在此处安装示例 BookInfo 示例:https ://istio.io/docs/samples/bookinfo.html

但是,当我尝试卷曲网关 URL 时,出现连接被拒绝错误。我所有的 pod 和服务似乎都在运行。这是kubectl get pods命令的结果:

NAME                             READY     STATUS    RESTARTS   AGE
details-v1-1932527472-ggpf1      2/2       Running   0          8m
grafana-1261931457-d7wwx         1/1       Running   0          12m
istio-ca-3887035158-hnmkr        1/1       Running   0          12m
istio-egress-1920226302-vx1ml    1/1       Running   0          12m
istio-ingress-2112208289-kkblh   1/1       Running   0          12m
istio-manager-2910860705-qj8wv   2/2       Running   0          12m
istio-mixer-2335471611-hnnsz     1/1       Running   0          12m
productpage-v1-241699992-kl5mt   2/2       Running   0          8m
prometheus-3067433533-mdmp5      1/1       Running   0          12m
ratings-v1-2565146534-112g5      2/2       Running   0          8m
reviews-v1-2536835021-fp16t      2/2       Running   0          8m
reviews-v2-3299280847-x687f      2/2       Running   0          8m
reviews-v3-4061726673-6f4gb      2/2       Running   0          8m
servicegraph-3127588006-zc1w4    1/1       Running   0          12m

这是kubectl get services命令的结果:

NAME            CLUSTER-IP   EXTERNAL-IP   PORT(S)                       
AGE
details         10.0.0.151   <none>        9080/TCP                      10m
grafana         10.0.0.243   <pending>     3000:32076/TCP                14m
istio-egress    10.0.0.22    <none>        80/TCP                        14m
istio-ingress   10.0.0.96    <pending>     80:31126/TCP,443:30916/TCP    14m
istio-manager   10.0.0.90    <none>        8080/TCP,8081/TCP             14m
istio-mixer     10.0.0.68    <none>        9091/TCP,9094/TCP,42422/TCP   14m
kubernetes      10.0.0.1     <none>        443/TCP                       14m
productpage     10.0.0.139   <none>        9080/TCP                      10m
prometheus      10.0.0.95    <pending>     9090:32474/TCP                14m
ratings         10.0.0.110   <none>        9080/TCP                      10m
reviews         10.0.0.197   <none>        9080/TCP                      10m
servicegraph    10.0.0.230   <pending>     8088:32648/TCP                14m

然后我运行这些命令:

export GATEWAY_URL=$(kubectl get po -l istio=ingress -o 'jsonpath={.items[0].status.hostIP}'):$(kubectl get svc istio-ingress -o 'jsonpath={.spec.ports[0].nodePort}')
curl -o /dev/null -s -w "%{http_code}\n" http://${GATEWAY_URL}/productpage

我得到的回应是000。用我的浏览器点击端点会给我一个连接被拒绝的错误。我在某个时候有这个工作,我不知道它在哪里打破了界限。任何帮助将不胜感激!

版本信息

Minikube

minikube version: v0.19.0

库贝尔

Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.4", GitCommit:"d6f433224538d4f9ca2f7ae19b252e6fcb66a3ae", GitTreeState:"clean", BuildDate:"2017-05-19T20:41:07Z", GoVersion:"go1.8.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"clean", BuildDate:"2017-05-09T23:22:45Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}

Istio

istioctl version:

Version: 0.1.5
GitRevision: 21f4cb4
GitBranch: master
User: jenkins@ubuntu-16-04-build-de3bbfab70500
GolangVersion: go1.8
KubeInjectHub: docker.io/istio
KubeInjectTag: 0.1


apiserver version:

Version: 0.1.5
GitRevision: 21f4cb4
GitBranch: master
User: jenkins@ubuntu-16-04-build-de3bbfab70500
GolangVersion: go1.8.1
4

1 回答 1

0

这更像是一个支持/疑难解答问题

您能否在https://github.com/istio/issues/issues中链接此问题 并单击“新问题”,链接您已在此处放置的详细信息,但还可以添加 的值GATEWAY_URL和/或完整输出

curl -v http://${GATEWAY_URL}/productpage

那里。谢谢 !

Minikube v0.19.0 也有已知问题,请升级到 v0.19.1 并重试,看看是否单独解决了您的问题?

于 2017-06-07T01:17:50.327 回答