diff --git a/k8s/platform/monitoring/prometheus-values.yaml b/k8s/platform/monitoring/prometheus-values.yaml index 47a819d..d0828bb 100644 --- a/k8s/platform/monitoring/prometheus-values.yaml +++ b/k8s/platform/monitoring/prometheus-values.yaml @@ -36,12 +36,18 @@ prometheus: scrapeTimeout: 60s 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. - # 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: volumeClaimTemplate: spec: - storageClassName: longhorn + storageClassName: longhorn-wffc accessModes: ["ReadWriteOnce"] resources: requests: