一、KubeView 介绍
KubeView 是一个 Kubernetes 集群可视化工具和可视化资源管理器。它提供了跨命名空间的 Kubernetes 对象的完整概述,以及它们如何通过直观的 UI 和资源对象相互连接。它允许用户在集群内部运行命令,并查看集群内部的资源使用情况、容器运行状态、网络流量等。KubeView 支持多种数据源,可以读取 Prometheus、Grafana、Kubernetes 管理等工具的数据,将集群内部的数据可视化。
二、Kubeview官网地址:
https://kubeview.benco.io/
添加helm源
helm repo add kubeview https://benc-uk.github.io/kubeview/charts
三、部署
[root@master1 helm]# helm install kubeview kubeview/kubeview
NAME: kubeview
LAST DEPLOYED: Tue Nov 28 19:32:36 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
=====================================
==== KubeView has been deployed! ====
=====================================
To get the external IP of your application, run the following:
export SERVICE_IP=$(kubectl get svc --namespace default kubeview -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace default svc -w kubeview'
四、查看pod状态并访问页面
[root@master1 home]# kubectl get po
NAME READY STATUS RESTARTS AGE
kubeview-64fd5d8b8c-cxq7q 1/1 Running 0 32m
[root@master1 home]#
[root@master1 home]# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 70m
kubeview LoadBalancer 10.108.196.106 <pending> 80:31660/TCP 57m
访问方式:
ip+端口:http://192.168.100.15:31660/
注:镜像不好拉取,可以直接load一下。自行下载
https://download.csdn.net/download/weixin_45432833/88578102