k8s 部署 dashboard 面板

安装helm后

添加仓库

helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/

helm repo update

安装

helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --namespace kubernetes-dashboard --set service.type=NodePort

复制代码
[admin@localhost data]$ helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard  --set service.type=NodePort     NAME: kubernetes-dashboard
LAST DEPLOYED: Sat Jan 24 17:59:53 2026
NAMESPACE: default
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
TEST SUITE: None
NOTES:
*************************************************************************************************
*** PLEASE BE PATIENT: Kubernetes Dashboard may need a few minutes to get up and become ready ***
*************************************************************************************************

Congratulations! You have just installed Kubernetes Dashboard in your cluster.

To access Dashboard run:
  kubectl -n default port-forward svc/kubernetes-dashboard-kong-proxy 8443:443

NOTE: In case port-forward command does not work, make sure that kong service name is correct.
      Check the services in Kubernetes Dashboard namespace using:
        kubectl -n default get svc

Dashboard will be available at:
  https://localhost:8443

启动比较慢,还需要拉取镜像,可能需要科学上网或者提前load image,

查看相关服务是否已经启动:

复制代码
[admin@localhost data]$ kubectl get po
NAME                                                    READY   STATUS                  RESTARTS   AGE
kubernetes-dashboard-api-8b6867ccf-sv5tg                0/1     ImagePullBackOff        0          85s
kubernetes-dashboard-auth-75d484b77-rwx2j               0/1     ErrImagePull            0          85s
kubernetes-dashboard-kong-9849c64bd-7zchs               0/1     Init:ImagePullBackOff   0          85s
kubernetes-dashboard-metrics-scraper-7685fd8b77-nzbx7   0/1     ImagePullBackOff        0          85s
kubernetes-dashboard-web-84df7cd7f8-ppxnf               0/1     ImagePullBackOff        0          85s
nginx-7d78c7fcdf-55z9w                                  1/1     Running                 0          41m
nginx-7d78c7fcdf-c8xbq                                  1/1     Running                 0          41m

访问: https://localhost:8443

成功!

相关推荐
我不会起名字3221 小时前
K8s 服务 DNS 解析偶发 5 秒超时:conntrack 与 ndots 的 3 个坑
kubernetes·k8s·dns·conntrack·coredns
risc1234561 小时前
万变不离其宗
人工智能·低代码·云原生
EterNity_TiMe_2 小时前
Docker服务越装越多记不住端口?我用Fenrus把NAS里的常用入口整理成一个导航页
运维·人工智能·docker·ai·容器·cpolar
吴声子夜歌3 小时前
Docker入门与实战——libnetwork插件化网络功能
网络·docker·容器
江湖有缘3 小时前
Docker实战 | 使用Docker部署HarborGuard容器安全扫描平台
安全·docker·容器
江湖有缘4 小时前
Docker实战 | 使用Docker部署Reubah文件转换器和图像处理器
docker·容器·eureka
T.O.P_KING4 小时前
Falco vs. Tetragon:云原生运行时安全选型指南
安全·云原生
七夜zippoe4 小时前
把 OpenClaw Agent 搬进 K8s:容器化部署全记录
ai·云原生·容器·kubernetes·openclaw
flytalei6 小时前
从 Docker Compose 到 K3s:逐浪笔记首次完整部署与故障排查实战
笔记·docker·容器