无法通过网络负载均衡器访问 Istio 插件
Unable to access Istio addons via network Load Balancer
所有附加组件 运行 都很好,只是我无法通过 Network LoadBalancer 访问它 URL
[ec2-user@ip-10-0-0-60 ~]$ kubectl get vs,dr,gw -n istio-system
NAME GATEWAYS HOSTS AGE
virtualservice.networking.istio.io/grafana-vs [grafana-gateway] [grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.u s-east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/kiali-vs [kiali-gateway] [kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us- east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/prometheus-vs [prometheus-gateway] [prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.el b.us-east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/tracing-vs [tracing-gateway] [tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.u s-east-1.amazonaws.com] 32h
NAME HOST AGE
destinationrule.networking.istio.io/grafana grafana 32h
destinationrule.networking.istio.io/kiali kiali 32h
destinationrule.networking.istio.io/prometheus prometheus 32h
destinationrule.networking.istio.io/tracing tracing 32h
NAME AGE
gateway.networking.istio.io/grafana-gateway 32h
gateway.networking.istio.io/kiali-gateway 32h
gateway.networking.istio.io/prometheus-gateway 32h
gateway.networking.istio.io/tracing-gateway 32h
我保存 YAML 文件的源代码如下;
https://github.com/ameyaagashe/istio-addons.git
Pods 运行 很好,服务也很好,如下所示;
[ec2-user@ip-10-0-0-60 addons]$ kubectl get pods,svc -n istio-system
NAME READY STATUS RESTARTS AGE
pod/grafana-94f5bf75b-5vmwk 1/1 Running 0 37h
pod/istio-egressgateway-64f6cf8c5c-xfx5c 1/1 Running 0 37h
pod/istio-ingressgateway-7d494fc944-nfbgl 1/1 Running 0 37h
pod/istiod-559cbd785d-rxs5m 1/1 Running 0 37h
pod/jaeger-5c7675974-2tkg9 1/1 Running 0 37h
pod/kiali-667b888c56-2p9rt 1/1 Running 0 32h
pod/prometheus-7d76687994-7b8hp 2/2 Running 0 33h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/grafana ClusterIP 10.100.217.154 <none> 3000/TCP 37h
service/istio-egressgateway ClusterIP 10.100.124.234 <none> 80/TCP,443/TCP,15443/TCP 37h
service/istio-ingressgateway LoadBalancer 10.100.139.212 a77a61e85b85a46198645ac29a1ebbfd-1680121350.us-east-1.elb.amazonaws.com 15021:32196/TCP,80:30819/TCP,443:31500/TCP,31400:30624/TCP,15443:31551/TCP 37h
service/istiod ClusterIP 10.100.49.147 <none> 15010/TCP,15012/TCP,443/TCP,15014/TCP 37h
service/jaeger-collector ClusterIP 10.100.117.234 <none> 14268/TCP,14250/TCP 37h
service/kiali ClusterIP 10.100.158.203 <none> 20001/TCP,9090/TCP 37h
service/prometheus ClusterIP 10.100.40.238 <none> 9090/TCP 37h
service/tracing ClusterIP 10.100.50.33 <none> 80/TCP 37h
service/zipkin ClusterIP 10.100.183.114 <none> 9411/TCP 37h
[ec2-user@ip-10-0-0-60 addons]$
现在,我无法访问它们...
[ec2-user@ip-10-0-0-60 addons]$ curl http://grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$
P. ;请检查我下面的截图,
所以现在,我应该将每个 YAML 文件中的 NLM 字符串更新为 a77* 到 learningservicemesh.com ?
请协助。
完全按照你的建议做了,但没有魅力...
[ec2-user@ip-10-0-0-60 addons]$ kubectl get vs,gw,dr -n istio-system
NAME GATEWAYS HOSTS AGE
virtualservice.networking.istio.io/grafana-vs [grafana-gateway] [grafana.learningservicemesh.com] 6s
virtualservice.networking.istio.io/kiali-vs [kiali-gateway] [kiali.learningservicemesh.com] 6s
virtualservice.networking.istio.io/prometheus-vs [prometheus-gateway] [prometheus.learningservicemesh.com] 6s
virtualservice.networking.istio.io/tracing-vs [tracing-gateway] [tracing.learningservicemesh.com] 6s
NAME AGE
gateway.networking.istio.io/grafana-gateway 6s
gateway.networking.istio.io/kiali-gateway 6s
gateway.networking.istio.io/prometheus-gateway 6s
gateway.networking.istio.io/tracing-gateway 6s
NAME HOST AGE
destinationrule.networking.istio.io/grafana grafana 6s
destinationrule.networking.istio.io/kiali kiali 6s
destinationrule.networking.istio.io/prometheus prometheus 6s
destinationrule.networking.istio.io/tracing tracing 6s
[ec2-user@ip-10-0-0-60 addons]$ curl http://grafana.learningservicemesh.com
curl: (6) Could not resolve host: grafana.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://kiali.learningservicemesh.com
curl: (6) Could not resolve host: kiali.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://prometheus.learningservicemesh.com
curl: (6) Could not resolve host: prometheus.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://tracing.learningservicemesh.com
curl: (6) Could not resolve host: tracing.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$
问题是,没有为 learningservicemesh.com 创建子域。一旦我创建了一个子域,一切都开始正常工作。
所有附加组件 运行 都很好,只是我无法通过 Network LoadBalancer 访问它 URL
[ec2-user@ip-10-0-0-60 ~]$ kubectl get vs,dr,gw -n istio-system
NAME GATEWAYS HOSTS AGE
virtualservice.networking.istio.io/grafana-vs [grafana-gateway] [grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.u s-east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/kiali-vs [kiali-gateway] [kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us- east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/prometheus-vs [prometheus-gateway] [prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.el b.us-east-1.amazonaws.com] 32h
virtualservice.networking.istio.io/tracing-vs [tracing-gateway] [tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.u s-east-1.amazonaws.com] 32h
NAME HOST AGE
destinationrule.networking.istio.io/grafana grafana 32h
destinationrule.networking.istio.io/kiali kiali 32h
destinationrule.networking.istio.io/prometheus prometheus 32h
destinationrule.networking.istio.io/tracing tracing 32h
NAME AGE
gateway.networking.istio.io/grafana-gateway 32h
gateway.networking.istio.io/kiali-gateway 32h
gateway.networking.istio.io/prometheus-gateway 32h
gateway.networking.istio.io/tracing-gateway 32h
我保存 YAML 文件的源代码如下;
https://github.com/ameyaagashe/istio-addons.git
Pods 运行 很好,服务也很好,如下所示;
[ec2-user@ip-10-0-0-60 addons]$ kubectl get pods,svc -n istio-system
NAME READY STATUS RESTARTS AGE
pod/grafana-94f5bf75b-5vmwk 1/1 Running 0 37h
pod/istio-egressgateway-64f6cf8c5c-xfx5c 1/1 Running 0 37h
pod/istio-ingressgateway-7d494fc944-nfbgl 1/1 Running 0 37h
pod/istiod-559cbd785d-rxs5m 1/1 Running 0 37h
pod/jaeger-5c7675974-2tkg9 1/1 Running 0 37h
pod/kiali-667b888c56-2p9rt 1/1 Running 0 32h
pod/prometheus-7d76687994-7b8hp 2/2 Running 0 33h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/grafana ClusterIP 10.100.217.154 <none> 3000/TCP 37h
service/istio-egressgateway ClusterIP 10.100.124.234 <none> 80/TCP,443/TCP,15443/TCP 37h
service/istio-ingressgateway LoadBalancer 10.100.139.212 a77a61e85b85a46198645ac29a1ebbfd-1680121350.us-east-1.elb.amazonaws.com 15021:32196/TCP,80:30819/TCP,443:31500/TCP,31400:30624/TCP,15443:31551/TCP 37h
service/istiod ClusterIP 10.100.49.147 <none> 15010/TCP,15012/TCP,443/TCP,15014/TCP 37h
service/jaeger-collector ClusterIP 10.100.117.234 <none> 14268/TCP,14250/TCP 37h
service/kiali ClusterIP 10.100.158.203 <none> 20001/TCP,9090/TCP 37h
service/prometheus ClusterIP 10.100.40.238 <none> 9090/TCP 37h
service/tracing ClusterIP 10.100.50.33 <none> 80/TCP 37h
service/zipkin ClusterIP 10.100.183.114 <none> 9411/TCP 37h
[ec2-user@ip-10-0-0-60 addons]$
现在,我无法访问它们...
[ec2-user@ip-10-0-0-60 addons]$ curl http://grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: grafana.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: kiali.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: prometheus.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
curl: (6) Could not resolve host: tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com
[ec2-user@ip-10-0-0-60 addons]$
P. ;请检查我下面的截图,
所以现在,我应该将每个 YAML 文件中的 NLM 字符串更新为 a77* 到 learningservicemesh.com ?
请协助。
完全按照你的建议做了,但没有魅力...
[ec2-user@ip-10-0-0-60 addons]$ kubectl get vs,gw,dr -n istio-system
NAME GATEWAYS HOSTS AGE
virtualservice.networking.istio.io/grafana-vs [grafana-gateway] [grafana.learningservicemesh.com] 6s
virtualservice.networking.istio.io/kiali-vs [kiali-gateway] [kiali.learningservicemesh.com] 6s
virtualservice.networking.istio.io/prometheus-vs [prometheus-gateway] [prometheus.learningservicemesh.com] 6s
virtualservice.networking.istio.io/tracing-vs [tracing-gateway] [tracing.learningservicemesh.com] 6s
NAME AGE
gateway.networking.istio.io/grafana-gateway 6s
gateway.networking.istio.io/kiali-gateway 6s
gateway.networking.istio.io/prometheus-gateway 6s
gateway.networking.istio.io/tracing-gateway 6s
NAME HOST AGE
destinationrule.networking.istio.io/grafana grafana 6s
destinationrule.networking.istio.io/kiali kiali 6s
destinationrule.networking.istio.io/prometheus prometheus 6s
destinationrule.networking.istio.io/tracing tracing 6s
[ec2-user@ip-10-0-0-60 addons]$ curl http://grafana.learningservicemesh.com
curl: (6) Could not resolve host: grafana.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://kiali.learningservicemesh.com
curl: (6) Could not resolve host: kiali.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://prometheus.learningservicemesh.com
curl: (6) Could not resolve host: prometheus.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$ curl http://tracing.learningservicemesh.com
curl: (6) Could not resolve host: tracing.learningservicemesh.com
[ec2-user@ip-10-0-0-60 addons]$
问题是,没有为 learningservicemesh.com 创建子域。一旦我创建了一个子域,一切都开始正常工作。