From 9e0a83f8ca9b32532ccd22c7a2a82614dc8f359a Mon Sep 17 00:00:00 2001 From: Story Crater Bot <19826264+Riotpiaole@users.noreply.github.com> Date: Thu, 13 Aug 2026 06:37:53 -0700 Subject: [PATCH] =?UTF-8?q?fix(prometheus):=20use=20longhorn=20StorageClas?= =?UTF-8?q?s,=20drop=20nonexistent=20longhorn-wffc=20=E2=80=94=20Prometheu?= =?UTF-8?q?s=20CR=20requested=20storageClass=20longhorn-wffc=20which=20doe?= =?UTF-8?q?sn't=20exist=20(deprecated),=20so=20operator=20never=20created?= =?UTF-8?q?=20the=20StatefulSet=20(Reconciled=3DFalse,=20no=20metrics=20se?= =?UTF-8?q?rver)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/infra/longhorn/longhorn-storageclass.yaml | 4 ++-- k8s/infra/monitoring/prometheus-values.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/k8s/infra/longhorn/longhorn-storageclass.yaml b/k8s/infra/longhorn/longhorn-storageclass.yaml index 61e0d85..908d506 100644 --- a/k8s/infra/longhorn/longhorn-storageclass.yaml +++ b/k8s/infra/longhorn/longhorn-storageclass.yaml @@ -1,5 +1,5 @@ -# Longhorn StorageClass - single unified storage class for the entire cluster -# Replaces: longhorn-wffc, longhorn-kafka, longhorn-static (all deprecated) +# Longhorn StorageClass - single unified `longhorn` storage class for the whole +# cluster. This is the only Longhorn class anything should reference. apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: diff --git a/k8s/infra/monitoring/prometheus-values.yaml b/k8s/infra/monitoring/prometheus-values.yaml index d0828bb..d510556 100644 --- a/k8s/infra/monitoring/prometheus-values.yaml +++ b/k8s/infra/monitoring/prometheus-values.yaml @@ -42,12 +42,12 @@ prometheus: topology.kubernetes.io/zone: az-a # Persistent storage — metrics survive node reboots and pod restarts. - # longhorn-wffc (WaitForFirstConsumer) binds after scheduling so the volume - # lands on the node the pod runs on. + # Uses the default `longhorn` StorageClass; nodeSelector above already pins + # the pod to az-a (the sole Longhorn node), so Immediate binding is fine. storageSpec: volumeClaimTemplate: spec: - storageClassName: longhorn-wffc + storageClassName: longhorn accessModes: ["ReadWriteOnce"] resources: requests: