我遇到了kubeadm init的问题,所以我先运行kubeadm reset,然后运行kubeadm init,眼前的问题就消失了,但是现在我遇到了另一个问题,那就是当我运行kubectl get all时,我得到以下响应:

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 3h6m
Error from server (Forbidden): replicationcontrollers is forbidden: User "system:node:abc-server.localdomain" cannot list resource "replicationcontrollers" in API group "" in the namespace "default"
Error from server (Forbidden): daemonsets.apps is forbidden: User "system:node:abc-server.localdomain" cannot list resource "daemonsets" in API group "apps" in the namespace "default"
Error from server (Forbidden): deployments.apps is forbidden: User "system:node:abc-server.localdomain" cannot list resource "deployments" in API group "apps" in the namespace "default"
Error from server (Forbidden): replicasets.apps is forbidden: User "system:node:abc-server.localdomain" cannot list resource "replicasets" in API group "apps" in the namespace "default"
Error from server (Forbidden): statefulsets.apps is forbidden: User "system:node:abc-server.localdomain" cannot list resource "statefulsets" in API group "apps" in the namespace "default"
Error from server (Forbidden): horizontalpodautoscalers.autoscaling is forbidden: User "system:node:abc-server.localdomain" cannot list resource "horizontalpodautoscalers" in API group "autoscaling" in the namespace "default"
Error from server (Forbidden): jobs.batch is forbidden: User "system:node:abc-server.localdomain" cannot list resource "jobs" in API group "batch" in the namespace "default"
Error from server (Forbidden): cronjobs.batch is forbidden: User "system:node:abc-server.localdomain" cannot list resource "cronjobs" in API group "batch" in the namespace "default"

我已经用有限的kubernetes词汇耗尽了谷歌搜索能力,因此希望这里的人可以为我提供以下帮助:
  • 发生了什么事! (这是RBAC授权问题吗?)
  • 我该如何解决?因为这绝对是需要清理的开发环境,所以我不介意一种快速而肮脏的方式,以便我可以继续进行手头的任务(即重新启动并重新运行)
  • 最佳答案

    正如@Software工程师在其评论中提到的那样,存在一个github问题,并对此进行了修复:

    github上的neolit123用户发布了此解决方案:



    AFAIK,没有这样的更改可以在1.14.4和3.之间中断。

    关于kubernetes - 运行kubeadm重置后的问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/61072700/

    10-16 16:28
    查看更多