【发布时间】:2021-12-09 19:07:39
【问题描述】:
我是 Kubernetes 的初学者。我已从 Docker Destop 启用它,现在我想安装 Kubernetes Dashboard。
我点击了这个链接:
https://github.com/kubernetes/dashboard#getting-started
我以管理员身份在 Powershell 中执行了我的第一个命令:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml
我收到以下错误:
错误:验证错误 “https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml”: 错误验证数据: 验证错误(Deployment.spec.template.spec.securityContext): 未知字段“seccompProfile”在 io.k8s.api.core.v1.PodSecurityContext;如果你选择忽略这些 错误,使用 --validate=false 关闭验证
在这种情况下,我尝试使用带有 --validate=false 的相同命令。
然后它没有给出任何错误,当我执行时:
kubectl proxy
我通过以下方式获得了访问令牌:
kubectl describe secret -n kube-system
我尝试访问指南中提供的链接:
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
我得到以下招摇的回应:
【问题讨论】:
标签: kubernetes kubernetes-dashboard