0

我正在尝试从我的 gitlab 运行器中部署一些部署。我在我的集​​群角色和角色绑定中看不到错误。

这是我得到的错误:

from server for: "./deployment.yaml": deployments.apps "demo-deployment" is forbidden: User "system:serviceaccount:gitlab-runner:gitlab-ci" cannot get resource "deployments" in API group "apps" in the namespace "gitlab-runner"

这里我创建的角色:

kubectl create clusterrole deployment-test --verb=\* --resource=deployments

kubectl create clusterrolebinding deployment-test-binding --clusterrole=deployment-test --serviceaccount=gitlab-runner:gitlab-ci

谢谢你的帮助!

4

0 回答 0