配置国内镜像加速源

sudo mkdir -p /etc/rancher/k3s/
sudo tee /etc/rancher/k3s/registries.yaml <<'EOF'
mirrors:
  docker.io:
    endpoint:
      - "https://registry.cn-hangzhou.aliyuncs.com"
      - "https://docker.m.daocloud.io"
  registry.k8s.io:
    endpoint:
      - "https://registry.cn-hangzhou.aliyuncs.com"
      - "https://k8s.m.daocloud.io"
  ghcr.io:
    endpoint:
      - "https://ghcr.m.daocloud.io"
EOF

配置后重启k3s

systemctl restart k3s

手动下载 Chart 包(离线安装)

wget https://gh-proxy.com/https://github.com/kubernetes/dashboard/releases/download/kubernetes-dashboard-7.14.0/kubernetes-dashboard-7.14.0.tgz

然后手动安装

helm install kubernetes-dashboard ./kubernetes-dashboard-7.14.0.tgz \
  --namespace kubernetes-dashboard \
  --create-namespace \
  --set kong.enabled=false

查看Dashboard节点状态

kubectl get pods -n  kubernetes-dashboard  -o wide

感谢大家的阅读, 如有疑问可以加我微信