Prometheus外部K8S和监控内部K8S的区别

Prometheus监控内部K8S就是把Prometheus部署在K8S集群内,比如部署在K8S集群的monitoring的namespace下,因为K8S在所有的namespace下自动创建了serviceAccount和对应的Secret里自带访问K8S API的token和ca,所以就不需要手动创建serviceAccount和Secret了.
 
Prometheus监控外部K8S就是把Prometheus部署在虚拟机上,需要自己在Prometheus.yaml手动指定API的地址,ca和Token
https://cloud.tencent.com/developer/article/1659552这篇文章有介绍
原文地址:https://www.cnblogs.com/chadiandianwenrou/p/14066946.html