【问题标题】:Kubernetes - Google App Engine VPC connectorKubernetes - Google App Engine VPC 连接器
【发布时间】:2021-09-22 05:52:43
【问题描述】:

我正在使用 VPC 将我的应用程序连接到远程数据库服务,使用 App Engine,我只需将连接字符串添加到我的 app.yaml 文件中:

vpc_access_connector:
  name: projects/ID/locations/europe-west1/connectors/database-connector

但我正在将该应用迁移到 Google Kubernetes Engine,因此该应用将部署在 Docker 容器中。

如何使用 GKE 重新连接到我的 VPC?

最好的问候

【问题讨论】:

  • 您的 GKE 集群已经在您的 VPC 中。您不需要特殊的连接器,您就在里面!你有什么问题?

标签: database google-app-engine google-cloud-platform google-kubernetes-engine vpc


【解决方案1】:

最简单的做法是在与数据库服务相同的 VPC 上创建/部署新的 GKE 集群。

【讨论】:

    猜你喜欢
    • 2023-03-23
    • 2018-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多