@Jeff 你好,请问本地启动调试代码的时候,apiserver.go跟controller-manager.go2个都需要启动吗?
只启动apiserver.go可以吗?
我在goland上面启动了apiserver.go,但是controller-manager.go报错了,调接口试了几个接口都返回类似
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "namespaces.resources.kubesphere.io is forbidden: User \"system:anonymous\" cannot list resource \"namespaces\" in API group \"resources.kubesphere.io\" at the cluster scope",
"reason": "Forbidden",
"details": {
"group": "resources.kubesphere.io",
"kind": "namespaces"
},
"code": 403
}
尝试了在headers中加入参数,但是并不管用
请问这2种情况要如何处理?