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

成功!

相关推荐
Elastic 中国社区官方博客20 小时前
为 Elastic Cloud Serverless 和 Elasticsearch 引入统一的 API 密钥
大数据·运维·elasticsearch·搜索引擎·云原生·serverless
空中海20 小时前
Kubernetes 生产实践、可观测性与扩展入门
java·贪心算法·kubernetes
Devin~Y20 小时前
大厂Java面试实录:Spring Boot/Cloud、Kafka、Redis、K8s 与 Spring AI(RAG/Agent)三轮连环问
java·spring boot·redis·mysql·spring cloud·kafka·kubernetes
深色風信子21 小时前
Docker newapi
运维·docker·容器·newapi
旷世奇才李先生21 小时前
Spring Cloud Alibaba 2026实战:微服务治理全解析
微服务·云原生·架构
GL_Rain1 天前
快速搭建Halo博客 + 崩溃秒恢复方案(Docker极简部署)
运维·docker·容器
lar_slw1 天前
k8s部署前端项目
前端·容器·kubernetes
米高梅狮子1 天前
06.Kubernetes Secret和Kubernetes Controllers
云原生·容器·kubernetes
雨奔1 天前
Kubernetes 实操:创建 LimitRange 和 Pod 并管理内存资源
云原生·容器·kubernetes
LSL666_1 天前
什么是微服务
微服务·云原生·架构