环境信息:
RKE2 版本: rke2 version v1.24.14+rke2r1
节点 CPU 架构,操作系统和版本:Linux k8s-master01 5.14.0-362.24.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 13 17:33:16 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
集群配置: 3 servers, 3 agents
问题描述: helm安装的Prometheus全家桶。无法采集 kube-controller-manager、 kube-etcd、kube-scheduler的数据。Prometheus全家桶版本:40.0.0,修改了bind-address也不行
重现步骤:
- 安装 Prometheus 的命令: ```
helm install kps prometheus-community/kube-prometheus-stack -f kube-prometheus-stack.yaml -n monitoring --create-namespace --version 40.0.0 --debug
**Prometheus采集不到的返回结果:**
Get "https://192.168.0.11:10257/metrics": dial tcp 192.168.0.11:10257: connect: connection refused
Get "http://192.168.0.11:2379/metrics": read tcp 10.42.3.88:33970->192.168.0.11:2379: read: connection reset by peer
Get "https://192.168.0.13:10259/metrics": dial tcp 192.168.0.13:10259: connect: connection refused
![微信截图_20240403105454|690x206](upload://t9wscofeK0W6rZpHjTvnffETlLF.jpeg)