大佬教程收集整理的这篇文章主要介绍了使用 helm 将 prometheus 配置到 kubernetes 中的特定节点,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在 Kubernetes 中使用 HelR_428_11845@ 配置 Prometheus,我尝试执行如下命令并且部署成功。
$ HelR_428_11845@ install prometheus prometheus-community/prometheus --namespace prometheus --set
nodeSELEctor.nodetype=infra
name: prometheus
LAST DEPLOYED: Tue Apr 27 22:47:20 2021
nameSPACE: prometheus
STATUS: deployed
但是,当我尝试描述创建的 pod 时,我无法将 nodeSELEctor 值视为“nodetype=infra”。有人可以指出我遗漏的地方。
$ kubectl get pods -n prometheus
name READY STATUS RESTARTS AGE
prometheus-alertmanager-7f86c968db-vln2x 2/2 Running 0 61m
prometheus-kube-state-metrics-6bfcd6f648-6cdbw 1/1 Running 0 61m
prometheus-node-exporter-7q9lh 1/1 Running 0 61m
prometheus-pushgateway-54576f7765-6kjt5 1/1 Running 0 61m
prometheus-server-7c9b8dbfcd-9x48b 2/2 Running 0 61m
$ kubectl describe pod prometheus-alertmanager-7f86c968db-vln2x -n prometheus
name: prometheus-alertmanager-6bc84b9455-4g9mw
namespace: prometheus
Priority: 0
..
QoS Class: BestEffort
Node-SELEctors: <none> --> This is the fIEld I'm expecTing to have "nodetype=infra"
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
需要为每个组件配置nodeSELEctor
alertmanager:
nodeSELEctor:
nodetype: infra
nodeExporter:
nodeSELEctor:
nodetype: infra
server:
nodeSELEctor:
nodetype: infra
pushgateway:
nodeSELEctor:
nodetype: infra
您可以确定所有值 here
以上是大佬教程为你收集整理的使用 helm 将 prometheus 配置到 kubernetes 中的特定节点全部内容,希望文章能够帮你解决使用 helm 将 prometheus 配置到 kubernetes 中的特定节点所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。