k8s Prometheus 报错 Get “https://172.22.220.133:9100/metrics“: context deadline exceeded
·
查看Prometheus 报错误:context deadline exceeded
加大各个node-exporter-5fkt7资源限制:
limits:
cpu: 200m
memory: 400Mi
在安装配置文件nodeExporter-daemonset.yaml中!
serviceMonitor/monitoring/node-exporter
https://172.16.192.227:9100/metrics
Get “https://172.16.192.227:9100/metrics”: context deadline exceeded
grep -rn “requests:” /root/kube-prometheus/manifests
加大资源限制:
[root@china ~]# vim /root/kube-prometheus/manifests/nodeExporter-daemonset.yaml
resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 10m
memory: 20Mi
从新配置:
[root@china manifests]# pwd
/root/kube-prometheus/manifests
[root@china manifests]# kubectl create -f .
更多推荐



所有评论(0)