google-cloud-platform - 当文件上传到 GCP 存储桶(Kubeflow 1.3 多用户)时,如何运行管道?
问题描述
我收到以下错误:
“无法使用 API 资源引用进行授权:无法使用 API 资源引用进行授权:PermissionDenied:用户 'myServiceAccount@appspot.gserviceaccount.com' 未获得授权,原因是:(请求:ResourceAttributes{Namespace:namespace1,Verb:list,Group: pipelines.kubeflow.org,版本:v1beta1,资源:实验,子资源:,名称:,
代码
def main(data, context):
client = kfp.Client(host=HOST, client_id=CLIENT_ID,namespace=NAMESPACE)
logging.info(client.list_experiments(namespace=NAMESPACE))
解决方案
Now my GCP function is able to list pipelines.
I had to use the following service account: KF-NAME-user@KF-PROJECT.iam.gserviceaccount.com .
This message appears in the logs but it's just a warning message No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/namespace'
推荐阅读
- shared-memory - 如何在 Ada 中使用 Linux 将任意字符串写入然后读取到共享内存?
- python - python中的索引数组(摩尔社区)
- c# - c# WinForms 在子窗体中打开颜色对话框
- marklogic - Marklogic 中的可搜索表达式
- php - 为什么在 PHP 变量中未分配 TinyMCE 文本
- sql - 在 Microsoft SQL Server 上插入触发器后 -- 更新新创建记录中的列
- php - 在php中转换字符串表达式
- c# - Unity 服务器端 C# 脚本在运行时加载
- javascript - 向从下拉列表填充的跨度添加和删除文本
- nuxt.js - nuxt-community/starter-template 和 create-nuxt-app 有什么关系?