拒绝使用Istio Gateway连接的Minikube

时间:2017-06-07 00:05:20

标签: kubernetes minikube istio

我正在尝试使用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

Kubectl

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

1 个答案:

答案 0 :(得分:0)

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

您可以在https://github.com/istio/issues/issues中关联此问题吗? 并单击“新建问题”,链接您已经放在这里的重要细节,但也添加GATEWAY_URL的值和/或

的完整输出
curl -v http://${GATEWAY_URL}/productpage

那里。谢谢!

Minikube v0.19.0也有已知问题,请升级到v0.19.1然后再试一次,看看这是否能解决您的问题?