K8S学习笔记之Grafana App for Kubernetes的配置
Grafana有一套针对Kubernetes监控的APP,和Grafana-Zabbix App类似,但是配置咋一看比较麻烦,主要参数都是来自K8S。
这款APP的详细介绍请参考Grafana App for Kubernetes
#CA Cert cat ~/.kube/config | grep certificate-authority-data | cut -d ' ' -f 6 | base64 -d #Client Cert cat ~/.kube/config | grep client-certificate-data | cut -d ' ' -f 6 | base64 -d #Client Key cat ~/.kube/config | grep client-key-data | cut -d ' ' -f 6 | base64 -d
1. all the needed data is stored in your .kube/config YAML file 2. paste the url stored in the "clusters.cluster.server" .kube/config field into the "HTTP URL" field for the plugin
注意:当你填写了以上信息,你相当于把K8S集群的钥匙交给了Grafana,请务必做好安全和防护,确保填写的证书和秘钥不能泄露!!!!
参考1
参考2