无法访问 Traefik 入口后面的 Jaeger UI
我已经按照此 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
主机文件:
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 :
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论