微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

GCP AI Platform Pipelines - KFP - 使用托管存储 - cloudsqlproxy 问题

如何解决GCP AI Platform Pipelines - KFP - 使用托管存储 - cloudsqlproxy 问题

我在使用“使用托管存储”设置 GCP AI Platform Pipelines - Kubeflow Pipelines v1.4.1 时遇到问题 没有任何配置不允许我(KFP 服务上的错误)使用“使用托管存储”,但让我们关注下面描述的特定存储。

我的设置是:

  • 自定义网络/子网中使用版本“1.17.15-gke.800”的私有集群并启用工作负载身份
  • 在与 GKE 相同的自定义网络/子网中使用私有 MysqL 8.0
  • GCS
  • “使用托管存储”,其中指定了所有必需的信息:GCS 名称数据库的连接名称用户、密码和数据库前缀
  • 使用的工作负载标识(为了简化所有 KSA(K8s 服务帐户)已映射到具有所有者角色的单个 Google 服务帐户)

请注意,在没有“使用托管存储”选项的情况下,使用 GKE 和 KFP 进行设置可以正常工作,但如果使用“使用托管存储”,则会失败:

  1. ml-管道:
  • 状态:
    • Pod 错误:CrashLoopBackOff
    • 没有最低可用性
  • 日志:
packets.go:36: unexpected EOF
CETdriver: bad connection
  1. 元数据-grpc-deployment:
  • 状态:
    • Pod 错误:CrashLoopBackOff
    • 没有最低可用性
  • 日志:
Non-OK-status: status status: Internal: MysqL_real_connect Failed: errno: 2013,error: Lost connection to MysqL server at 'handshake: reading inital communication packet',system error: 11MetadataStore cannot be created with the given connection config.
  1. cloudsqlproxy 和 MysqL(相同的日志):
  • 状态:好的
  • 日志:
Couldn't connect to "<db_connection_string>": googleapi: Error 401: Request had invalid authentication credentials. Expected OAuth 2 access token,login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
More details:
Reason: authError,Message: Invalid Credentials

cloudsqlproxy 服务/pod 中似乎存在问题,无法与数据库建立连接。是这个功能错误还是一些错误的配置?

解决方法

我遇到了同样的问题并通过以下方式解决了:

  1. 启用 GCP SQL API。
  2. 在托管存储选项中写出用户名“root”。默认值不是描述中所述的“root”。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。