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