fix(prometheus): pin to az-a + longhorn-wffc SC — RWO PVC failed to attach on cp-2 (sole Longhorn node is cp-1)

This commit is contained in:
Story Crater Bot
2026-07-21 11:14:11 -07:00
parent 21e3987b11
commit f2f4a2580f
@@ -36,12 +36,18 @@ prometheus:
scrapeTimeout: 60s scrapeTimeout: 60s
evaluationInterval: 30s evaluationInterval: 30s
# Pin to az-a (talos-cp-1) — sole Longhorn node; else the RWO PVC can't
# attach on cp-2/cp-3 (CSINode lacks driver.longhorn.io).
nodeSelector:
topology.kubernetes.io/zone: az-a
# Persistent storage — metrics survive node reboots and pod restarts. # Persistent storage — metrics survive node reboots and pod restarts.
# Longhorn reattaches the PVC automatically when the pod reschedules. # longhorn-wffc (WaitForFirstConsumer) binds after scheduling so the volume
# lands on the node the pod runs on.
storageSpec: storageSpec:
volumeClaimTemplate: volumeClaimTemplate:
spec: spec:
storageClassName: longhorn storageClassName: longhorn-wffc
accessModes: ["ReadWriteOnce"] accessModes: ["ReadWriteOnce"]
resources: resources:
requests: requests: