创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
操作系统信息
例如:虚拟机Centos7
Kubernetes版本信息
例如:v1.23.6
容器运行时
例如,使用 docker20
KubeSphere版本信息
v3.4.1
问题是什么
按照官方文档练习流水线,执行到deploy to dev,报错如下
+ envsubst
+ kubectl apply -f -
Error from server (Forbidden): error when retrieving current configuration of:
Resource: “apps/v1, Resource=deployments”, GroupVersionKind: “apps/v1, Kind=Deployment”
Name: “ks-sample-dev”, Namespace: “kubesphere-sample-dev”
from server for: “STDIN”: deployments.apps “ks-sample-dev” is forbidden: User “project-regular” cannot get resource “deployments” in API group “apps” in the namespace “kubesphere-sample-dev”
Error from server (Forbidden): error when retrieving current configuration of:
Resource: “/v1, Resource=services”, GroupVersionKind: “/v1, Kind=Service”
Name: “ks-sample-dev”, Namespace: “kubesphere-sample-dev”
from server for: “STDIN”: services “ks-sample-dev” is forbidden: User “project-regular” cannot get resource “services” in API group "" in the namespace “kubesphere-sample-dev”
script returned exit code 1