Update Argo CD configuration to improve handling of managed fields and enhance compatibility with server-side apply, ensuring smoother deployments and conflict resolution.

This commit is contained in:
Nikholas Pcenicni
2026-05-13 17:23:54 -04:00
parent 91b32407f8
commit b26099342c
2 changed files with 12 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ spec:
chart: kube-prometheus-stack chart: kube-prometheus-stack
targetRevision: 82.15.1 targetRevision: 82.15.1
helm: helm:
skipCrds: true
releaseName: kube-prometheus releaseName: kube-prometheus
valueFiles: valueFiles:
- $values/clusters/noble/bootstrap/kube-prometheus-stack/values.yaml - $values/clusters/noble/bootstrap/kube-prometheus-stack/values.yaml
@@ -23,8 +24,8 @@ spec:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
namespace: monitoring namespace: monitoring
# Manual sync: Ansible helm runs first; enable automation after cutover (see ../README.md §5). # Manual sync: Ansible helm runs first; enable automation after cutover (see ../README.md §5).
# ServerSideApply: kube-prometheus-stack CRDs exceed the 256KiB **last-applied-configuration** limit # ServerSideApply: helps large manifests Argo applies directly (CRDs are handled via **helm.skipCrds** +
# when applied client-side (Argo/kubectl); SSA avoids that annotation. # chart **crds.upgradeJob** server-side apply — see values.yaml).
syncPolicy: syncPolicy:
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true

View File

@@ -24,6 +24,15 @@ prometheusOperator:
certManager: certManager:
enabled: true enabled: true
# CRDs: Argo CD applies chart CRDs with client-side apply → **last-applied-configuration** can exceed 256KiB.
# **`crds.upgradeJob`** runs a pre-sync Helm hook that applies CRDs with **`kubectl apply --server-side`**.
# Pair with **`helm.skipCrds: true`** on the Argo Application so Argo does not patch those CRDs itself.
# Ref: https://github.com/argoproj/argo-cd/issues/11269
crds:
upgradeJob:
enabled: true
forceConflicts: true
# --- Longhorn-backed persistence (default chart storage is emptyDir) --- # --- Longhorn-backed persistence (default chart storage is emptyDir) ---
alertmanager: alertmanager:
alertmanagerSpec: alertmanagerSpec: