From 22b67fa4fc32a136d316ca6914b4b8cf4d582731 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 20 Apr 2025 16:26:33 +0300 Subject: [PATCH] prometheus-operator: migrate to argo+kustomize v0.75.1 - same as in cluster currently --- argocd/applications/prometheus-operator.yaml | 24 ++++++++++++++++++++ prometheus-operator/.gitignore | 1 - prometheus-operator/README.md | 11 --------- 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 argocd/applications/prometheus-operator.yaml delete mode 100644 prometheus-operator/.gitignore delete mode 100644 prometheus-operator/README.md diff --git a/argocd/applications/prometheus-operator.yaml b/argocd/applications/prometheus-operator.yaml new file mode 100644 index 0000000..1f15145 --- /dev/null +++ b/argocd/applications/prometheus-operator.yaml @@ -0,0 +1,24 @@ +# Note: Do not put any Prometheus instances or exporters in this namespace, instead have them in `monitoring` namespace +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: prometheus-operator + namespace: argocd +spec: + project: k-space.ee + source: + repoURL: https://github.com/prometheus-operator/prometheus-operator.git + targetRevision: v0.75.1 + path: . + kustomize: + namespace: prometheus-operator + destination: + server: 'https://kubernetes.default.svc' + namespace: prometheus-operator + syncPolicy: + # automated: + # prune: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true # Resource is too big to fit in 262144 bytes allowed annotation size. diff --git a/prometheus-operator/.gitignore b/prometheus-operator/.gitignore deleted file mode 100644 index 27f9d2b..0000000 --- a/prometheus-operator/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bundle.yml diff --git a/prometheus-operator/README.md b/prometheus-operator/README.md deleted file mode 100644 index 4941960..0000000 --- a/prometheus-operator/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# Prometheus operator - -To deploy Prometheus operator: - -``` -curl -L https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.75.1/bundle.yaml | sed -e 's/namespace: default/namespace: prometheus-operator/g' > bundle.yml -kubectl create namespace prometheus-operator -kubectl apply --server-side -n prometheus-operator -f bundle.yml -``` - -Note: Do not put any Prometheus instances or exporters in this namespace, instead have them in `monitoring` namespace