From 9cccde8a7bdd5b7dc7e730dd997ee7f546707905 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 31 Mar 2022 19:09:49 +0200 Subject: [PATCH] FIX: prometheus CRD being too big for ArgoCD --- baseline/monitoring-crds.yml | 25 +++++++++++++++++++++++++ baseline/monitoring.yml | 1 + 2 files changed, 26 insertions(+) create mode 100644 baseline/monitoring-crds.yml diff --git a/baseline/monitoring-crds.yml b/baseline/monitoring-crds.yml new file mode 100644 index 0000000..32f9eb9 --- /dev/null +++ b/baseline/monitoring-crds.yml @@ -0,0 +1,25 @@ +# https://github.com/prometheus-operator/prometheus-operator/issues/4439#issuecomment-1030198014 +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: prometheus-crds + namespace: argocd +spec: + project: baseline + destination: + server: https://kubernetes.default.svc + namespace: metrics + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true + - Replace=true + source: + repoURL: https://github.com/prometheus-community/helm-charts.git + path: charts/kube-prometheus-stack/crds/ + targetRevision: kube-prometheus-stack-34.6.0 + directory: + recurse: true diff --git a/baseline/monitoring.yml b/baseline/monitoring.yml index 2ca31fc..bf8d83a 100644 --- a/baseline/monitoring.yml +++ b/baseline/monitoring.yml @@ -20,6 +20,7 @@ spec: chart: kube-prometheus-stack targetRevision: 34.6.0 helm: + skipCrds: true values: | kubeProxy: enabled: false