我们有一个问题,在 Istio Service Mesh 中连接到 AWS RDS 会导致upstream connect error or disconnect/reset before header
. 我们的出口规则如下
apiVersion: config.istio.io/v1alpha2
kind: EgressRule
metadata:
namespace: <our-namespace>
name: rds-egress-rule-with
spec:
destination:
service: <RDS End point>
ports:
- port: 80
protocol: http
- port: 443
protocol: https
- port: 3306
protocol: https
与 MySQL 的连接在 EC2 中的独立 MySQL 中运行良好。在没有 Istio 的情况下,与 AWS RDS 的连接可以正常工作。该问题仅出现在 Istio Service Mesh 中。
我们在 Disabled Mutual TLS 配置中使用 istio。