Amazon web services 无法通过网络负载平衡器访问Istio加载项
所有加载项都运行正常,只是我无法通过网络负载均衡器URL访问它Amazon web services 无法通过网络负载平衡器访问Istio加载项,amazon-web-services,istio,istio-kiali,istio-prometheus,Amazon Web Services,Istio,Istio Kiali,Istio Prometheus,所有加载项都运行正常,只是我无法通过网络负载均衡器URL访问它 [ec2-user@ip-10-0-0-60 ~]$ kubectl get vs,dr,gw -n istio-system NAME GATEWAYS HOSTS
[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
吊舱运转良好,服务状况良好,如下所示
[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]$
附则;请查看下面我的截图,
现在,我应该用a77*将每个YAML文件中的NLM字符串更新到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创建子域。一旦我创建了一个子域,所有的子域都开始正常工作。也许你需要等待dns传播:)需要多长时间?现在好像12个小时很容易?nslookup tracing.a77a61e85b85a46198645ac29a1ebbfd-e856e794d398b3ae.elb.us-east-1.amazonaws.com 8.8.8您需要有一个dns区域并创建指向您的elb的cname记录请再次检查我的问题和下一步行动?
[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]$