首页 文章

Kubernetes 1.8仪表板配置失败,错误“无类型”角色“已注册版本”rbac.authorization.k8s.io/v1“

提问于
浏览
0

我有kubernetes仪表板安装问题,感谢您的意见和解决方案 .

ERROR: 无法解码“https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard-head.yaml ": no kind "角色" is registered for version " rbac.authorization.k8s.io/v1 " unable to decode " https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard-head.yaml ": no kind " RoleBinding " is registered for version " rbac.authorization.k8s.io/v1 " unable to decode " https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard-head.yaml ": no kind "部署" is registered for version " apps / v1beta2”

kubectl version 客户端版本:version.Info {Major:"1",Minor:"5",GitVersion:"v1.5.2",GitCommit:"269f928217957e7126dc87e6adfa82242bfe5b1e",GitTreeState:"clean",BuildDate:"2017-07-03T15:31:10Z",GoVersion:"go1.7.4",编译:"gc",平台:"linux/amd64"}服务器版本:version.Info {Major:"1",Minor:"5",GitVersion:"v1.5.2",GitCommit:"269f928217957e7126dc87e6adfa82242bfe5b1e",GitTreeState:"clean",BuildDate:"2017-07-03T15:31:10Z",GoVersion:"go1.7.4",编译:"gc",平台:"linux/amd64"}

kubectl api-versions apps / v1beta1 authentication.k8s.io/v1beta1 authorization.k8s.io/v1beta1 autoscaling / v1 batch / v1 certificates.k8s.io/v1alpha1 extensions / v1beta1 policy / v1beta1 rbac.authorization.k8s.io/v1alpha1 storage.k8s . io / v1beta1 v1

Pods Status kube-system kubernetes-dashboard-3725693093-zm11m 0/1 CrashLoopBackOff

1 回答

  • 2

    如果您没有RBAC enabled cluster,那么在尝试创建 Role 对象时,您赢了't be able to use RBAC objects, such as Role. That',它无法说它对 Role 对象一无所知 . From the docs

    当指定“RBAC”(基于角色的访问控制)使用“rbac.authorization.k8s.io”API组来驱动授权决策时,允许管理员通过Kubernetes API动态配置权限策略 .

    您还需要一个更新的kubectl版本,如in this comment所述 . RBAC至少需要kubectl 1.6而你需要1.5 .

相关问题