我无法创建 Kubernetes 仪表板。
我正在按照 Kubernetes 官方网站中提到的步骤进行操作:
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"}
我一直无法为这个问题找到合适的解决方案。