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

成功!

相关推荐
Lxinccode几秒前
docker(28) : 别名配置
docker·容器·eureka·docker别名
一叶飘零_sweeeet21 分钟前
服务注册发现深度拆解:Nacos vs Eureka 核心原理、架构选型与生产落地
微服务·云原生·eureka·nacos·架构·注册中心
学不完的2 小时前
Docker数据卷管理及优化
运维·docker·容器·eureka
Sst的头号粉丝6 小时前
Docker——compose
运维·docker·容器
ZZZKKKRTSAE7 小时前
rhel9快速上手Docker
运维·docker·容器
筱顾大牛7 小时前
Docker安装教程(加汉化!超详细!!!)
运维·docker·容器
九成宫8 小时前
安装和配置Docker教程(装在其他盘)
运维·docker·容器
const_qiu8 小时前
微服务测试项目架构设计与实践
微服务·云原生·架构
janthinasnail8 小时前
使用Docker安装nanobot(超轻量个人AI助手)
docker·容器
不是书本的小明9 小时前
K8s探针实战:存活、就绪与启动三重保障
云原生·k8s