我正在按照此链接中的说明进行操作: https://kubecloud.io/kubernetes-dashboard-on-arm-with-rbac-61309310a640
然后我运行以下命令:
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/72832429656c74c4c568ad5b7163fa9716c3e0ec/src/deploy/recommended/kubernetes-dashboard-arm.yaml
但是我得到这个输出/错误:
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/72832429656c74c4c568ad5b7163fa9716c3e0ec/src/deploy/recommended/kubernetes-dashboard-arm.yaml
secret/kubernetes-dashboard-certs created
serviceaccount/kubernetes-dashboard created
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created
service/kubernetes-dashboard created
error: unable to recognize "https://raw.githubusercontent.com/kubernetes/dashboard/72832429656c74c4c568ad5b7163fa9716c3e0ec/src/deploy/recommended/kubernetes-dashboard-arm.yaml": no match
es for kind "Deployment" in version "apps/v1beta2"
我不确定如何从这里继续吗? 我正在尝试为Raspberry PI集群安装Kubernetes仪表板。
这是我的设置:
pi@k8s-master:/etc/kubernetes$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-master Ready master 2d11h v1.16.2
k8s-node1 Ready worker 2d3h v1.16.2
k8s-node2 Ready worker 2d2h v1.15.2
k8s-node3 Ready worker 2d2h v1.16.2
答案 0 :(得分:1)
您的错误背后的原因是,在1.16.0之后,kubernetes停止使用apps/v1beta2
进行部署。您应该改用apps/v1
。
请下载文件:
wget https://raw.githubusercontent.com/kubernetes/dashboard/72832429656c74c4c568ad5b7163fa9716c3e0ec/src/deploy/recommended/kubernetes-dashboard-arm.yaml
使用nano
或vi
编辑文件,并将Deployment api版本更改为apps/v1
。
别忘了在退出时保存文件。
然后:
kubectl apply -f [file_name]
您可能会发现有关here版本更新的更多信息。