gpt4 book ai didi

azure - 如何在 Istio 中配置 Azure 应用程序网关

转载 作者:行者123 更新时间:2023-12-03 00:47:19 26 4
gpt4 key购买 nike

我在 AKS(Azure Kubernetes 服务)上设置了应用程序,目前正在使用 Azure 应用程序网关作为在 AKS 上运行的应用程序的入口资源。

现在,在为我的集群设置 ISTIO 后,除了一部分之外,图表都显示正常。由于 Azure APP 网关对于 ISTIO 来说是未知的,因此该资源显示为“未知”。我什至尝试启动虚拟服务并将其指向入口资源,但这对图表没有任何影响。我该如何向 ISTIO 确定它是 Azure 应用程序网关而不是“未知”资源。

enter image description here

最佳答案

这是因为 Azure 应用程序网关不是 Istio Mesh 的一部分。根据您配置 Azure 应用程序网关的方式,您甚至可能无法获得使用 istio 的任何好处。

让 istio 与 Azure 应用程序网关配合使用比看起来要复杂得多。

有一个Github同时使用 istio 和 Azure 应用程序网关的问题。

声明如下:

You may wonder why I chose to put the ingress resource into the istio-system namespace. Im doing so because in my understanding the istio-ingress must be the endpoint for each app-gateway redirect. If I would let it redirect to the echo-server service, AGKI(application-gateway-kubernetes-ingress) would point to the ip-address of the deployed pod, which would completely disregard istios servicemesh.

因此,如果您还没有这样的配置并且您想使用 Istio,我建议将 Istio Ingress Gateway 设置为您的 Azure 应用程序网关的端点,并将其视为来自外部网格的流量。

<小时/>

以下解释了为什么 Azure 应用程序网关是“未知”资源。

this中文章中你可以找到以下说法:

Ingress traffic

Istio expects traffic to go via the the Ingress Gateway. When you see ‘unknown’ traffic it can simply be the case that you use the standard Kubernetes Ingress or an OpenShift route to send traffic from the outside to Istio.

Azure Application gateway使用自定义入口 Controller :

Application Gateway Ingress Controller (AGIC) allows you to use Application Gateway as the ingress for an Azure Kubernetes Service (AKS) cluster.

The ingress controller runs as a pod within the AKS cluster and consumes Kubernetes Ingress Resources and converts them to an Application Gateway configuration which allows the gateway to load-balance traffic to the Kubernetes pods. The ingress controller only supports Application Gateway V2 SKU.

For more information, see Application Gateway Ingress Controller (AGIC).

根据Kiali文档:

In some situations you can see a lot of connections from an "Unknown" node to your services in the graph, because some software external to your mesh might be periodically pinging or fetching data. This is typically the case when you setup Kubernetes liveness probes, or have some application metrics pushed or exposed to a monitoring system such as Prometheus. Perhaps you wouldn’t like to see these connections because they make the graph harder to read.

<小时/>

解决您的其他问题:

How shall I establish to ISTIO that it is Azure app gateway and not “unknown” resource.

据我所知,没有办法让自定义(非 istio)Ingress Gateway 成为 istio 网格的一部分。将 Azure 应用程序网关标记为“未知”。

希望这有帮助。

关于azure - 如何在 Istio 中配置 Azure 应用程序网关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60113682/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com