小编Bhu*_*han的帖子

如何访问 istio 创建的仪表板

我在没有 helm 的情况下在kubernetes上安装了istio

我可以看到 Pod 和服务是在 istio-system 命名空间中创建的。

所有服务(如grafana、Prometheus)都会被创建,并且它们的端口不会暴露。

由于创建了负载均衡器服务,因此在 AWS 中也创建了一个负载均衡器,我想通过新创建的负载均衡器端点从外部网络访问 grafana、prometheus 等仪表板,但无法从负载均衡器端点访问该仪表板。

我尝试了 istio 文档推荐的端口转发:

kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 & 
Run Code Online (Sandbox Code Playgroud)

这些仅适用于http://localhost:3000 ,但无法通过http://publicip:3000访问

NAME                     TYPE           CLUSTER-IP       EXTERNAL-IP                                                              PORT(S)                                                                                                                                      AGE
grafana                  ClusterIP      172.20.192.71    <none>                                                                   3000/TCP                                                                                                                                     1m
istio-citadel            ClusterIP      172.20.111.103   <none>                                                                   8060/TCP,15014/TCP                                                                                                                           1m
istio-egressgateway      ClusterIP      172.20.123.112   <none>                                                                   80/TCP,443/TCP,15443/TCP                                                                                                                     1m
istio-galley             ClusterIP      172.20.45.229    <none>                                                                   443/TCP,15014/TCP,9901/TCP                                                                                                                   1m
istio-ingressgateway     LoadBalancer   172.20.94.157    xxxx-yyyy.us-west-2.elb.amazonaws.com   15020:31336/TCP,80:31380/TCP,443:31390/TCP,31400:31400/TCP,15029:32146/TCP,15030:30126/TCP,15031:31506/TCP,15032:30501/TCP,15443:31053/TCP   1m
istio-pilot              ClusterIP      172.20.27.87     <none> …
Run Code Online (Sandbox Code Playgroud)

linux portforwarding amazon-web-services kubernetes istio

1
推荐指数
1
解决办法
1931
查看次数