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