gpt4 book ai didi

kubernetes - 在kubeflow上找不到GOOGLE_APPLICATION_CREDENTIALS

转载 作者:行者123 更新时间:2023-12-02 12:16:01 25 4
gpt4 key购买 nike

我遵循tutorial在GCP上构建kubeflow。

在最后一步,我陷入了“检查您的培训组件的权限”的困境。

设置完这些secretName和secretMountPath之后。

kustomize edit add configmap mnist-map-training --from-literal=secretName=user-gcp-sa
kustomize edit add configmap mnist-map-training --from-literal=secretMountPath=/var/secrets

并运行
kustomize build . |kubectl apply -f -

我得到了错误:

Error: field specified in var '{GOOGLE_APPLICATION_CREDENTIALS ~G_v1_ConfigMap {data.GOOGLE_APPLICATION_CREDENTIALS}}' not found in corresponding resource error: no objects passed to apply



我无法在本地计算机上的/ var / secrets上找到我的GOOGLE_APPLICATION_CREDENTIALS,但是我认为kubeflow会根据此 document为我自动创建。

还是因为我使用“使用用户名和密码进行身份验证”来验证kubeflow?

最佳答案

我在here找到了解决方案。

kustomize edit add configmap mnist-map-monitoring --from-literal=GOOGLE_APPLICATION_CREDENTIALS=/var/secrets/user-gcp-sa.json     

在原始 tutorial中,缺少此功能。

关于kubernetes - 在kubeflow上找不到GOOGLE_APPLICATION_CREDENTIALS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56287936/

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