Istio kiali 仪表板显示为来自入口网关的未知流量

问题描述

我已经在我的 minikube 集群中部署了一个应用程序,应用程序可以通过 http://172.18.97.73:31566/ 的入口网关服务访问。

minikube ip
  172.18.97.73

kubectl get svc -n istio-system
  istio-ingressgateway   NodePort    10.99.4.153     <none>        15021:31123/TCP,80:31566/TCP,443:32094/TCP,15012:30004/TCP,15443:30369/TCP   3h48m

但 kiali 图显示流量来源未知。

kiali graph

我不明白出了什么问题,你能帮我吗?

清单在这里

apiVersion: v1
kind: Service
Metadata:
  name: application
spec:
  ports:
    - port: 8082
  selector:
    app: app
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
Metadata:
  name: http-gateway
spec:
  selector:
    istio: ingressgateway # use Istio default gateway implementation
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
Metadata:
  name: application-vs
spec:
  hosts:
  - "*"
  gateways:
  - "default/http-gateway"
  http:
  - route:
    - destination:
        host: application.default.svc.cluster.local
        port:
          number: 8082

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)