diff --git a/foundation/charts/monitor/templates/kube-prometheus-stack.yaml b/foundation/charts/monitor/templates/kube-prometheus-stack.yaml new file mode 100644 index 0000000..997d499 --- /dev/null +++ b/foundation/charts/monitor/templates/kube-prometheus-stack.yaml @@ -0,0 +1,41 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kube-prometheus-stack + namespace: argocd +spec: + project: foundation + source: + repoURL: https://prometheus-community.github.io/helm-charts + targetRevision: 79.11.0 + chart: kube-prometheus-stack + helm: + releaseName: kube-prometheus-stack + values: | + prometheusr: + prometheusSpec: + storageSpec: + volumeClaimTemplate: + spec: + storageClassName: "{{ .Values.globals.storageClass }}" # Replace with your StorageClass + accessModes: ["ReadWriteOnce"] + alertmanager: + alertmanagerSpec: + storage: + volumeClaimTemplate: + spec: + storageClassName: "{{ .Values.globals.storageClass }}" # Replace with your StorageClass + accessModes: ["ReadWriteOnce"] + resources: + requests: + storage: 5Gi + destination: + server: https://kubernetes.default.svc + namespace: foundation + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true diff --git a/foundation/charts/monitor/values.yaml b/foundation/charts/monitor/values.yaml index 41abe5a..6c3a814 100644 --- a/foundation/charts/monitor/values.yaml +++ b/foundation/charts/monitor/values.yaml @@ -1,2 +1,3 @@ globals: - timezone: Europe/Amsterdam \ No newline at end of file + timezone: Europe/Amsterdam + storageClass: prod \ No newline at end of file diff --git a/foundation/root/templates/applicationset.yaml b/foundation/root/templates/applicationset.yaml index d3cfd68..0d8687c 100644 --- a/foundation/root/templates/applicationset.yaml +++ b/foundation/root/templates/applicationset.yaml @@ -27,6 +27,7 @@ spec: values: | globals: timezone: {{ .Values.globals.timezone }} + storageClass: {{ .Values.globals.storageClass }} destination: server: https://kubernetes.default.svc namespace: foundation diff --git a/foundation/root/templates/project.yaml b/foundation/root/templates/project.yaml index 3fe6753..97b1ec6 100644 --- a/foundation/root/templates/project.yaml +++ b/foundation/root/templates/project.yaml @@ -12,6 +12,8 @@ spec: server: https://kubernetes.default.svc - namespace: argocd server: https://kubernetes.default.svc + - namespace: kube-system + server: https://kubernetes.default.svc clusterResourceWhitelist: - group: "*" kind: "*" diff --git a/foundation/root/values.yaml b/foundation/root/values.yaml index f9b292f..f8c39a9 100644 --- a/foundation/root/values.yaml +++ b/foundation/root/values.yaml @@ -4,4 +4,5 @@ path: "foundation/charts" exclude: "*.disabled" project: "foundation" globals: - timezone: Europe/Amsterdam \ No newline at end of file + timezone: Europe/Amsterdam + storageClass: prod \ No newline at end of file