0

我正在尝试在 Google 容器引擎上设置 istio,已成功安装 istio,但未能加载预订示例。

有什么我以错误的方式配置的吗?请帮帮我!提前致谢!

这是我尝试过的:

kubectl get pods

details-v1-3121678156-3h2wx       2/2       Running   0          58m
grafana-1395297218-h0tjv          1/1       Running   0          5h
istio-ca-4001657623-n00zx         1/1       Running   0          5h
istio-egress-2038322175-0jtf5     1/1       Running   0          5h
istio-ingress-2247081378-fvr33    1/1       Running   0          5h
istio-mixer-2450814972-jrrm4      1/1       Running   0          5h
istio-pilot-1836659236-kw7cr      2/2       Running   0          5h
productpage-v1-1440812148-gqrgl   0/2       Pending   0          57m
prometheus-3067433533-fqcfw       1/1       Running   0          5h
ratings-v1-3755476866-jbh80       2/2       Running   0          58m
reviews-v1-3728017321-0m7mk       0/2       Pending   0          58m
reviews-v2-196544427-6ftf5        0/2       Pending   0          58m
reviews-v3-959055789-079xz        0/2       Pending   0          57m
servicegraph-3127588006-03b93     1/1       Running   0          5h
zipkin-4057566570-0cb86           1/1       Running   0          5h

kubectl 获取 svc

NAME            CLUSTER-IP      EXTERNAL-IP       PORT(S)                        
details         10.11.249.214   <none>            9080/TCP                      
grafana         10.11.247.226   104.199.211.175   3000:31036/TCP         
istio-egress    10.11.246.60    <none>            80/TCP              
istio-ingress   10.11.242.178   35.189.165.119    80:31622/TCP,443:31241/TCP  
istio-mixer     10.11.242.104   <none>            9091/TCP,9094/TCP,42422/TCP 
istio-pilot     10.11.251.240   <none>            8080/TCP,8081/TCP           
kubernetes      10.11.240.1     <none>            443/TCP                  
productpage     10.11.255.53    <none>            9080/TCP                      
prometheus      10.11.248.237   130.211.249.66    9090:32056/TCP               
ratings         10.11.252.40    <none>            9080/TCP                      
reviews         10.11.242.168   <none>            9080/TCP                      
servicegraph    10.11.252.60    35.185.161.219    8088:32709/TCP               
zipkin          10.11.245.4     35.185.144.62     9411:31677/TCP          

获取入口 IP 并导出环境变量然后 curl

NAME      HOSTS     ADDRESS          PORTS     AGE
gateway   *         35.189.165.119   80        1h
Abduls-MacBook-Pro:~ abdul$ export GATEWAY_URL=35.189.165.119:80
Abduls-MacBook-Pro:~ abdul$ curl -o /dev/null -s -w "%{http_code}\n"    http://${GATEWAY_URL}/productpage
000
4

1 回答 1

0

当我在 GKE 上部署 istio 示例应用程序时,我遇到了类似的问题(“上游连接错误或在标头之前断开/重置”)。尝试删除所有 pod(并等待所有 pod 再次出现)。然后重新启动您的代理...

kubectl delete pods --all
于 2017-09-07T19:30:21.770 回答