无法访问 Traefik 入口后面的 Jaeger UI

发布于 2025-01-10 17:21:18 字数 2297 浏览 0 评论 0原文

我已经按照此 post< 的说明设置了 Jaeger /a>.当我访问 (http://myhost.com/jaeger< /a>)。浏览器不会打开仪表板,而是会打开另一个域名为 myhost.com 的网站。 我正在尝试从公司 LAN 上的 PC 打开仪表板。

Jaeger 组件均已设置:

ks -n monitoring get services
NAME               TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                               AGE
jaeger-agent       ClusterIP   None             <none>        5775/UDP,6831/UDP,6832/UDP,5778/TCP   92m
jaeger-collector   ClusterIP   10.110.225.20    <none>        14267/TCP,14268/TCP,9411/TCP          92m
jaeger-query       ClusterIP   10.111.184.121   <none>        80/TCP                                92m
zipkin             ClusterIP   None             <none>        9411/TCP                              92m


 ks -n ingress-nginx get services
NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                      AGE
ingress-nginx-controller             LoadBalancer   10.111.102.209   17.168.1.181   80:32137/TCP,443:30505/TCP   4d9h
ingress-nginx-controller-admission   ClusterIP      10.111.197.68    <none>         443/TCP                      4d9h

主机文件:

hosts

Jaeger 设置在 k0s 集群上(在 Debian 10 Buster 实例上)。

我的理解是,主机/Traefik 配置应该使 Jaeger UI 在集群外部可访问。

入口配置如下:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: traefik
    nginx.ingress.kubernetes.io/rewrite-target: /
    ingress.kubernetes.io/auth-type: basic
    ingress.kubernetes.io/auth-secret: my-auth-secret
  name: jaegerquery-ingress
  namespace: monitoring
spec:
  rules:
  - host: myhost.com
    http:
      paths:
      - path: /jaeger
        pathType: Prefix
        backend:
          service:
            name: jaeger-query
            port:
              number: 80

我缺少什么?

I have setup Jaeger as per the instructions from this post. I am unable to access the Jaeger UI in browser when I go to (http://myhost.com/jaeger). Instead of opening the dashboard the browser opens another website with domain myhost.com.
I am attempting to open the dashboard from my PC on the corporate LAN.

Jaeger components are all setup :

ks -n monitoring get services
NAME               TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                               AGE
jaeger-agent       ClusterIP   None             <none>        5775/UDP,6831/UDP,6832/UDP,5778/TCP   92m
jaeger-collector   ClusterIP   10.110.225.20    <none>        14267/TCP,14268/TCP,9411/TCP          92m
jaeger-query       ClusterIP   10.111.184.121   <none>        80/TCP                                92m
zipkin             ClusterIP   None             <none>        9411/TCP                              92m


 ks -n ingress-nginx get services
NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP    PORT(S)                      AGE
ingress-nginx-controller             LoadBalancer   10.111.102.209   17.168.1.181   80:32137/TCP,443:30505/TCP   4d9h
ingress-nginx-controller-admission   ClusterIP      10.111.197.68    <none>         443/TCP                      4d9h

And the hosts file :

hosts

Jaeger is setup on a k0s cluster (on a Debian 10 Buster instance).

My undersatnding is that the host/Traefik configuration should make the Jaeger UI accessible outside the cluster.

Ingress config is as follows:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: traefik
    nginx.ingress.kubernetes.io/rewrite-target: /
    ingress.kubernetes.io/auth-type: basic
    ingress.kubernetes.io/auth-secret: my-auth-secret
  name: jaegerquery-ingress
  namespace: monitoring
spec:
  rules:
  - host: myhost.com
    http:
      paths:
      - path: /jaeger
        pathType: Prefix
        backend:
          service:
            name: jaeger-query
            port:
              number: 80

What am I missing ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文