From 43e078343dc0fb0d4620236ac5cdf692d0ceba14 Mon Sep 17 00:00:00 2001 From: Victor Barba Martin Date: Thu, 4 Nov 2021 16:27:34 +0100 Subject: [PATCH] add monitoring --- k8s/applications/kustomization.yaml | 3 ++- k8s/applications/monitoring.yaml | 24 +++++++++++++++++++ k8s/monitoring/Chart.yaml | 4 ++++ .../{helm-values.yaml => values.yaml} | 0 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 k8s/applications/monitoring.yaml create mode 100644 k8s/monitoring/Chart.yaml rename k8s/monitoring/{helm-values.yaml => values.yaml} (100%) diff --git a/k8s/applications/kustomization.yaml b/k8s/applications/kustomization.yaml index 924fa2b..2acb21f 100644 --- a/k8s/applications/kustomization.yaml +++ b/k8s/applications/kustomization.yaml @@ -10,4 +10,5 @@ resources: - cert-manager.yaml - metrics-server.yaml - external-dns.yaml - - ingress-nginx.yaml \ No newline at end of file + - ingress-nginx.yaml + - monitoring.yaml \ No newline at end of file diff --git a/k8s/applications/monitoring.yaml b/k8s/applications/monitoring.yaml new file mode 100644 index 0000000..33ab3f8 --- /dev/null +++ b/k8s/applications/monitoring.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: monitoring +spec: + destination: + name: '' + namespace: monitoring + server: 'https://kubernetes.default.svc' + source: + path: k8s/monitoring + repoURL: 'git@bitbucket.org:jamkazam/video-iac.git' + targetRevision: HEAD + project: default + syncPolicy: + automated: + prune: true + allowEmpty: false + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m \ No newline at end of file diff --git a/k8s/monitoring/Chart.yaml b/k8s/monitoring/Chart.yaml new file mode 100644 index 0000000..80fb83d --- /dev/null +++ b/k8s/monitoring/Chart.yaml @@ -0,0 +1,4 @@ +dependencies: +- name: kube-prometheus-stack + version: "19.2.2" + repository: "https://prometheus-community.github.io/helm-charts" \ No newline at end of file diff --git a/k8s/monitoring/helm-values.yaml b/k8s/monitoring/values.yaml similarity index 100% rename from k8s/monitoring/helm-values.yaml rename to k8s/monitoring/values.yaml