简体   繁体   English

命名空间被禁止 无法列出资源 Kubernetes

[英]namespaces is forbidden cannot list resource Kubernetes

When I try to get ns, there is error当我尝试获取 ns 时,出现错误

namespaces is forbidden: User "system:node:k8-node-1" cannot list resource

this is only when I try kubectl get ns只有当我尝试kubectl get ns

What is problem?什么是问题? This is cluster install in BareMetal这是 BareMetal 中的集群安装

The kubeconfig which you are using does not have clusterwide priveledges to list all namespace您正在使用的kubeconfig没有clusterwide范围的权限来list所有namespace

Here is a task which you can use to create a kubeconfig which has the required priveledges这是一个任务,您可以使用它来创建具有所需权限的kubeconfig

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 terraform eks 设置 - 命名空间被禁止:用户无法列出资源 - terraform eks setup - namespaces is forbidden: User cannot list resource EKS Kubernetes 无法在集群范围内列出 API 组“”中的资源“命名空间” - EKS Kubernetes cannot list resource "namespaces" in API group "" at the cluster scope 无法在 AWS Elastic Kubernetes 服务中创建命名空间 - 禁止 - Cannot create namespaces in AWS Elastic Kubernetes Service - Forbidden 服务器错误(禁止):命名空间被禁止:用户“系统:匿名”无法在 API 组中创建资源“命名空间” - Error from server (Forbidden): namespaces is forbidden: User "system:anonymous" cannot create resource "namespaces" in API group Kubernetes - Jenkins 插件 - 禁止:用户“system:anonymous”无法列出 API 组中的资源“pods” - Kubernetes - Jenkins plugin - forbidden: User “system:anonymous” cannot list resource “pods” in API group Kubernetes 命名空间禁止使用 api - Kubernetes Namespaces forbidden using api 错误:命名空间被禁止:用户“system:serviceaccount:default:test”无法在 API 组“”中创建资源“命名空间” - Error: namespaces is forbidden: User "system:serviceaccount:default:test" cannot create resource "namespaces" in API group "" Kubernetes 仪表板错误消息:禁止配置映射:用户“system:serviceaccount:kube-system:deployment-controller”无法列出资源 - Kubernetes dashboard error messages: configmaps is forbidden: User "system:serviceaccount:kube-system:deployment-controller" cannot list resource kubernetes api:Failure 403 pods is disabled: 用户“system:serviceaccount:default:journalbeat”无法列出 API 组“”中的资源“pods” - kubernetes api: Failure 403 pods is forbidden: User “system:serviceaccount:default:journalbeat” cannot list resource “pods” in API group “” pods 被禁止:用户“system:serviceaccount:kubernetes-dashboard:admin-user”无法在命名空间“default”中的 API 组“”中列出资源“pods” - pods is forbidden: User "system:serviceaccount:kubernetes-dashboard:admin-user" cannot list resource "pods" in API group "" in the namespace "default"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM