Prometheus 结合 StateMetrics+cAdvisor 监控 Kubernetes 集群服 …
www.mydlq.club/article/11318.05.2021 · 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: kube-state-metrics 5 labels: 6 k8s-app: kube-state-metrics 7 app.kubernetes.io/name: kube-state-metrics ##不能删除此注解,该注解用于Prometheus自动发现 8 spec: 9 type: ClusterIP 10 ports: 11 - name: http-metrics 12 port: 8080 13 targetPort: 8080 14 - name: telemetry 15 port: 8081 16 targetPort: 8081 17 selector: …