Minikube 与 Istio 网关连接被拒绝
Minikube with Istio Gateway Connection Refused
我正在尝试获取本地 kubernetes 集群 运行 Minikube 和 Istio。我按照此处 istio 文档中的说明进行操作:https://istio.io/docs/tasks/installing-istio.html
然后我按照步骤在此处安装示例 BookInfo 示例:https://istio.io/docs/samples/bookinfo.html
然而,当我尝试卷曲网关 URL 时,我收到连接被拒绝的错误。我所有的 pods 和服务似乎都是 运行ning。这是 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 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
这更像是一个 support/troubleshooting 问题
你能 link 这个问题 https://github.com/istio/issues/issues
然后单击 "New Issue",link 您已经在此处提供的详细信息,但还要添加 GATEWAY_URL
的值 and/or
的完整输出
curl -v http://${GATEWAY_URL}/productpage
那里。谢谢!
此外 Minikube v0.19.0 也有已知问题,请升级到 v0.19.1 并重试,看看是否可以单独解决您的问题?
我正在尝试获取本地 kubernetes 集群 运行 Minikube 和 Istio。我按照此处 istio 文档中的说明进行操作:https://istio.io/docs/tasks/installing-istio.html
然后我按照步骤在此处安装示例 BookInfo 示例:https://istio.io/docs/samples/bookinfo.html
然而,当我尝试卷曲网关 URL 时,我收到连接被拒绝的错误。我所有的 pods 和服务似乎都是 运行ning。这是 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 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
这更像是一个 support/troubleshooting 问题
你能 link 这个问题 https://github.com/istio/issues/issues
然后单击 "New Issue",link 您已经在此处提供的详细信息,但还要添加 GATEWAY_URL
的值 and/or
curl -v http://${GATEWAY_URL}/productpage
那里。谢谢!
此外 Minikube v0.19.0 也有已知问题,请升级到 v0.19.1 并重试,看看是否可以单独解决您的问题?