首页 > 解决方案 > 默认服务帐户的 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"

标签: continuous-integrationgitlabcontinuous-deploymentk3s

解决方案


到目前为止,唯一的解决方案是使用具有 Gitlab-admin 权限的 SA...


推荐阅读