prometheus-operator: migrate to argo+kustomize

v0.75.1 - same as in cluster currently
This commit is contained in:
rasmus 2025-04-20 16:26:33 +03:00
parent 006240ee1a
commit 22b67fa4fc
3 changed files with 24 additions and 12 deletions
argocd/applications
prometheus-operator

@ -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.

@ -1 +0,0 @@
bundle.yml

@ -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