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