1.先到外网下载好镜像倒进各个节点
2.下载yaml文件和创建应用
mkdir -p ~/k8s/heapster cd ~/k8s/heapster
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/grafana.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/rbac/heapster-rbac.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml
wget https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/influxdb.yaml kubectl create -f ./
3.重新登录dashboard可以看到相关监控
原文地址:https://www.cnblogs.com/hixiaowei/p/9515223.html
时间: 2024-11-07 19:04:29