我在运行在EKS上的K8s集群上,从Istio的示例项目中运行bookinfo项目。我已经启用了自动侧加容器注入并部署了该项目。在这个帖子之后,我启用了一个用于googleapis的外部服务。
但是,当检查Kiali时,我看到的不是外部服务,而是BlackHoleCluster。我已经读到,这是Istio针对不存在于mesh中的外部服务的请求的虚拟集群(ServiceEntry将它们添加到mesh中)。
我也尝试过其他一些示例,并且所有的东西都在BlackHoleCluster中结束(或者PassThroughCluster (当为外部流量启用ALLOW_ALL时),所以我怀疑Istio的配置有什么问题。我使用的是Istio1.5。
这件事我找不到任何帮助。每个人都建议ServiceEntry应该足够了。
更新:代码示例
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: httpbin
spec:
hosts:
- httpbin.org
ports:
- number: 80
name: http
protocol: http
- number: 443
name: https
protocol: https
resolution: DNS
location: MESH_EXTERNAL发布于 2020-04-14 13:55:05
将Kiali从1.15.0更新到1.15.2,解决了这个问题。
https://stackoverflow.com/questions/61186618
复制相似问题