gpt4 book ai didi

kubernetes - 安装kubernetes仪表板以解决Raspberry Pi ARM集群错误

转载 作者:行者123 更新时间:2023-12-02 12:02:53 25 4
gpt4 key购买 nike

我正在按照此链接中的说明进行操作:
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

最佳答案

您的错误背后的原因是,在1.16.0之后,kubernetes停止使用apps/v1beta2进行部署。您应该改为使用apps/v1

请下载文件:

wget https://raw.githubusercontent.com/kubernetes/dashboard/72832429656c74c4c568ad5b7163fa9716c3e0ec/src/deploy/recommended/kubernetes-dashboard-arm.yaml

使用 nanovi编辑文件,并将Deployment api版本更改为 apps/v1

退出时不要忘记保存文件。

然后:
kubectl apply -f [file_name] 

您可能会发现有关release版本 here的更多信息。

关于kubernetes - 安装kubernetes仪表板以解决Raspberry Pi ARM集群错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58520933/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com