fix(prometheus): pin to az-a longhorn-wffc SC, drop conflicting ServerSideApply

This commit is contained in:
Story Crater Bot
2026-08-18 15:08:02 -07:00
parent 2845ded626
commit 3610fb9e5e
2 changed files with 11 additions and 3 deletions
@@ -110,7 +110,9 @@ spec:
selfHeal: true selfHeal: true
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
- ServerSideApply=true # ServerSideApply removed — it conflicts with managedNamespaceMetadata's
# forced namespace apply ("--force cannot be used with --server-side").
# The large monitoring CRDs are installed out-of-band instead.
--- ---
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
@@ -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: