fix(prometheus): use longhorn StorageClass, drop nonexistent longhorn-wffc — Prometheus CR requested storageClass longhorn-wffc which doesn't exist (deprecated), so operator never created the StatefulSet (Reconciled=False, no metrics server)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Longhorn StorageClass - single unified storage class for the entire cluster
|
# Longhorn StorageClass - single unified `longhorn` storage class for the whole
|
||||||
# Replaces: longhorn-wffc, longhorn-kafka, longhorn-static (all deprecated)
|
# cluster. This is the only Longhorn class anything should reference.
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -42,12 +42,12 @@ prometheus:
|
|||||||
topology.kubernetes.io/zone: az-a
|
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-wffc (WaitForFirstConsumer) binds after scheduling so the volume
|
# Uses the default `longhorn` StorageClass; nodeSelector above already pins
|
||||||
# lands on the node the pod runs on.
|
# the pod to az-a (the sole Longhorn node), so Immediate binding is fine.
|
||||||
storageSpec:
|
storageSpec:
|
||||||
volumeClaimTemplate:
|
volumeClaimTemplate:
|
||||||
spec:
|
spec:
|
||||||
storageClassName: longhorn-wffc
|
storageClassName: longhorn
|
||||||
accessModes: ["ReadWriteOnce"]
|
accessModes: ["ReadWriteOnce"]
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
Reference in New Issue
Block a user