【发布时间】:2021-07-21 02:08:50
【问题描述】:
我正在尝试在 Kubernetes 中使用 Helm 配置 Prometheus,并尝试执行如下命令,部署成功。
$ helm 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
【问题讨论】:
标签: kubernetes prometheus kubernetes-helm