【问题标题】:GKE init container won't be able to connect GCP SQL after Anthos service Mesh Installation安装 Anthos 服务网格后,GKE init 容器将无法连接 GCP SQL
【发布时间】:2023-01-28 17:31:05
【问题描述】:

一旦我安装了Anthos 服务网格private GKE autopilot cluster init 容器将无法连接 GCP SQL RDS然而,在 anthos service mesh 安装之前,init 容器能够连接 GCP SQL RDS。如果有人遇到此类问题,请在这里提供帮助?

在 init 容器中,我试图通过以下命令检查连接性: until nc -w 5 <PRIVATE_IP> 3306; do echo "Waiting for the <PRIVATE_IP>..."; sleep 5; done

【问题讨论】:

  • 您是否有机会对部署 SQL 应用程序的命名空间进行注释?也许你可以显示`kubectl desc pod <SQL_APP_POD>”的输出?
  • Init 容器正在尝试连接 GCP SQL RDS(GCP 托管服务)。

标签: google-kubernetes-engine istio servicemesh google-anthos-service-mesh


【解决方案1】:

你启用了相互 tls 吗? 您可以尝试编辑 sidecar 配置吗?

apiVersion: networking.istio.io/v1alpha3
kind: Sidecar
metadata:
  name: default
  namespace: example
spec:
  outboundTrafficPolicy:
    mode: ALLOW_ANY

【讨论】:

    猜你喜欢
    • 2021-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-14
    • 2022-07-28
    • 2012-06-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多