K8S学习笔记之Grafana App for Kubernetes的配置

 

Grafana有一套针对Kubernetes监控的APP,和Grafana-Zabbix App相似,可是配置咋一看比较麻烦,主要参数都是来自K8S。git

这款APP的详细介绍请参考Grafana App for Kubernetesgithub

 

 

#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

相关文章
相关标签/搜索