etcdctl 恢复k8s后报错

复制代码
Error from server (Forbidden): replicationcontrollers is forbidden: User "system:node:192.168.1.107" cannot list resource "replicationcontrollers" in API group "" in the namespace "harbor"
Error from server (Forbidden): daemonsets.apps is forbidden: User "system:node:192.168.1.107" cannot list resource "daemonsets" in API group "apps" in the namespace "harbor"
Error from server (Forbidden): deployments.apps is forbidden: User "system:node:192.168.1.107" cannot list resource "deployments" in API group "apps" in the namespace "harbor"
Error from server (Forbidden): replicasets.apps is forbidden: User "system:node:192.168.1.107" cannot list resource "replicasets" in API group "apps" in the namespace "harbor"
Error from server (Forbidden): statefulsets.apps is forbidden: User "system:node:192.168.1.107" cannot list resource "statefulsets" in API group "apps" in the namespace "harbor"
Error from server (Forbidden): horizontalpodautoscalers.autoscaling is forbidden: User "system:node:192.168.1.107" cannot list resource "horizontalpodautoscalers" in API group "autoscaling" in the namespace "harbor"
Error from server (Forbidden): cronjobs.batch is forbidden: User "system:node:192.168.1.107" cannot list resource "cronjobs" in API group "batch" in the namespace "harbor"
Error from server (Forbidden): jobs.batch is forbidden: User "system:node:192.168.1.107" cannot list resource "jobs" in API group "batch" in the namespace "harbor"

提示该master节点无权限,应该是在恢复的时候操作不当

在备用master节点上加上

复制代码
kubectl create clusterrolebinding system:node:192.168.1.107   --clusterrole=cluster-admin   --user=system:node:192.168.1.107
相关推荐
风向决定发型丶9 分钟前
K8S中Pod驱逐介绍
docker·容器·kubernetes
海鸥8121 分钟前
Kubernetes 集群中缺少 kagent.dev/v1alpha2
云原生·容器·kubernetes
qq_3961534533 分钟前
docker ddns-go 忘记密码
docker·容器·golang
Zhu7581 小时前
【数据迁移】k8s平台本地数据迁移整改
云原生·容器·kubernetes
无效的名字1 小时前
windows下,怎么压缩Docker Desktop占用的磁盘空间
windows·docker·容器
不是书本的小明1 小时前
多套小规格k8s集群 集成到统一k8s集群
云原生·容器·kubernetes
小敬爱吃饭10 小时前
Ragflow Docker部署及问题解决方案(界面为Welcome to nginx,ragflow上传文件失败,Docker中的ragflow-cpu-1一直重启)
人工智能·python·nginx·docker·语言模型·容器·数据挖掘
木子欢儿11 小时前
Docker Hub 镜像发布指南
java·spring cloud·docker·容器·eureka
H_老邪12 小时前
什么是云原生?
云原生