continuous-integration - 默认服务帐户的 k3s gitlab ci-cd 问题
问题描述
我正在尝试在 k3s 上部署一个简单的 Angular 应用程序 已安装 GitLab-runner 具有作为集群管理员角色的 GitLab 服务,它应该能够运行所有但我无法部署它:
rules:
- apiGroups:
- ""
resources:
- '*'
verbs:
- '*'
我还尝试专门添加动词“应用程序” - 行为没有变化
from server for: "deployment.yaml": deployments.apps "gitlab-master" is forbidden: User "system:serviceaccount:gitlab-managed-apps:default" cannot get resource "deployments" in API group "apps" in the namespace "gitlab-managed-apps"
解决方案
到目前为止,唯一的解决方案是使用具有 Gitlab-admin 权限的 SA...
推荐阅读
- javascript - 无法在外部 js 文件中访问 Vuex 商店
- postgresql - 为什么重新生成的 Postgres 表会在 Vapor 中引发错误?
- matlab - 复函数的有限差分
- sql - 使用 sql 选择大于其子类别平均值的值
- cassandra - Cassandra 对仅知道部分分区键的表进行软删除
- reactjs - 如何在 React 测试库中的多个测试中使用单个渲染。?
- javascript - rxjs这个语法怎么有效?
- python - Matching Columns to Geojson File
- javascript - 如何导航到屏幕而不将其添加到后台堆栈?
- php - 使用我自己的各种付款选项的高级设置的自定义条纹结帐表格