我在远程私有云上有一个远程集群,我只能访问SSH (没有GUI)。我使用以下内容启动代理服务器:
kubectl proxy --address=0.0.0.0 --accept-hosts=.*并通过以下方式启动远程K8s主服务器的本地SSH代理:
ssh -L 8001:127.0.0.1:8001 -N -f $MASTER_IP可以从本地笔记本上的以下地址访问仪表板:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login对于令牌,我创建了一个CluserRoleBinding并使用它检索了令牌(您可以在此链接的答复中找到详细说明):
kubectl describe secret $ROLE-TOKEN但一旦我点击登录,我就会得到:
404 Not found. The server could not find the requested resource.这是什么原因,以及如何绕过它?
技术细节:
OS: Debian 10
Kubernetes installed with Kubespray
Kubespray version: 2.12.0
Kubernetes version: 1.16.3
Dashboard version: 1.10.1https://serverfault.com/questions/1002480
复制相似问题