【发布时间】:2018-07-10 10:21:11
【问题描述】:
我无法创建 Kubernetes 仪表板。
我按照Kubernetes官方website中提到的步骤:
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
secret "kubernetes-dashboard-certs" created
serviceaccount "kubernetes-dashboard" created
service "kubernetes-dashboard" created
来自服务器的错误(BadRequest):创建“https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml”时出错:版本“v1”中的角色无法作为角色处理:没有为版本“rbac.authorization.k8s.io/”注册任何类型的“角色” v1”来自服务器的错误(BadRequest):创建“https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml”时出错:版本“v1”中的 RoleBinding 无法作为 RoleBinding 处理:没有为版本“rbac.authorization.k8s.io/v1”注册任何类型的“RoleBinding” “来自服务器的错误(BadRequest):创建“https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml”时出错:版本“v1beta2”中的部署无法作为部署处理:没有为版本“apps/v1beta2”注册任何类型的“部署”
我们的 Kubernetes 版本如下:
kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.2", GitCommit:"922a86cfcd65915a9b2f69f3f193b8907d741d9c", GitTreeState:"clean", BuildDate:"2017-07-21T08:23:22Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.12", GitCommit:"3bda299a6414b4866f179921610d6738206a18fe", GitTreeState:"clean", BuildDate:"2017-12-29T08:39:49Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
我还没有找到适合这个问题的解决方案。
【问题讨论】:
-
Up需要升级你的kubernetes版本。
-
对于 kubernetes 1.7.x 版本,使用这个v1-7.docs.kubernetes.io/docs/tasks/access-application-cluster/…
标签: kubernetes kubernetes-dashboard