removed prometheus

This commit is contained in:
Ari Sosnovsky authored and GitHub committed 2023-04-10 10:07:41 -04:00
1 parent 659000c8bf
commit 03a0bfa40a
1 file changed
+80 -80
+80 -80
View File
@@ -1,81 +1,81 @@
{{- $prometheusHost := "monitor.core" -}}
{{ if .Values.global.tls.enabled }}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
namespace: {{ .namespace }}
spec:
secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
issuerRef:
kind: ClusterIssuer
name: "{{ .Values.global.tls.issuer }}"
commonName: "{{$prometheusHost}}.{{.Values.global.domain}}"
dnsNames:
- "{{$prometheusHost}}.{{.Values.global.domain}}"
{{ end }}
# {{- $prometheusHost := "monitor.core" -}}
# {{ if .Values.global.tls.enabled }}
# ---
# apiVersion: cert-manager.io/v1
# kind: Certificate
# metadata:
# name: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
# namespace: {{ .namespace }}
# spec:
# secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
# issuerRef:
# kind: ClusterIssuer
# name: "{{ .Values.global.tls.issuer }}"
# commonName: "{{$prometheusHost}}.{{.Values.global.domain}}"
# dnsNames:
# - "{{$prometheusHost}}.{{.Values.global.domain}}"
# {{ end }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: "monitoring-prometheus"
namespace: "{{ .Release.Namespace }}"
spec:
project: meta-infrastructure
source:
chart: prometheus
repoURL: "https://prometheus-community.github.io/helm-charts"
targetRevision: "{{ .Values.chartVersions.prometheus }}"
helm:
releaseName: prometheus
values: |-
alertmanager:
persistence:
enabled: true
size: 8Gi
storageClass: "{{ .Values.global.nfsStorageClass }}"
ingress:
enabled: true
ingressClassName: traefik
annotations: {}
hosts:
- host: "{{$prometheusHost}}.{{ .Values.global.domain }}"
paths:
- path: /alertmanager
pathType: Prefix
{{ if .Values.global.tls.enabled }}
tls:
- secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
hosts:
- "{{$prometheusHost}}.{{ .Values.global.domain }}"
{{ end }}
server:
baseURL: "{{$prometheusHost}}.{{ .Values.global.domain }}"
persistentVolume:
enabled: true
size: 8Gi
storageClass: "{{ .Values.global.nfsStorageClass }}"
ingress:
enabled: true
ingressClassName: traefik
annotations: {}
hosts:
- "{{$prometheusHost}}.{{ .Values.global.domain }}"
path: /prometheus
pathType: Prefix
{{ if .Values.global.tls.enabled }}
tls:
- secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
hosts:
- "{{$prometheusHost}}.{{ .Values.global.domain }}"
{{ end }}
destination:
server: https://kubernetes.default.svc
namespace: "monitoring"
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
# ---
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: "monitoring-prometheus"
# namespace: "{{ .Release.Namespace }}"
# spec:
# project: meta-infrastructure
# source:
# chart: prometheus
# repoURL: "https://prometheus-community.github.io/helm-charts"
# targetRevision: "{{ .Values.chartVersions.prometheus }}"
# helm:
# releaseName: prometheus
# values: |-
# alertmanager:
# persistence:
# enabled: true
# size: 8Gi
# storageClass: "{{ .Values.global.nfsStorageClass }}"
# ingress:
# enabled: true
# ingressClassName: traefik
# annotations: {}
# hosts:
# - host: "{{$prometheusHost}}.{{ .Values.global.domain }}"
# paths:
# - path: /alertmanager
# pathType: Prefix
# {{ if .Values.global.tls.enabled }}
# tls:
# - secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
# hosts:
# - "{{$prometheusHost}}.{{ .Values.global.domain }}"
# {{ end }}
# server:
# baseURL: "{{$prometheusHost}}.{{ .Values.global.domain }}"
# persistentVolume:
# enabled: true
# size: 8Gi
# storageClass: "{{ .Values.global.nfsStorageClass }}"
# ingress:
# enabled: true
# ingressClassName: traefik
# annotations: {}
# hosts:
# - "{{$prometheusHost}}.{{ .Values.global.domain }}"
# path: /prometheus
# pathType: Prefix
# {{ if .Values.global.tls.enabled }}
# tls:
# - secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"
# hosts:
# - "{{$prometheusHost}}.{{ .Values.global.domain }}"
# {{ end }}
# destination:
# server: https://kubernetes.default.svc
# namespace: "monitoring"
# syncPolicy:
# automated:
# selfHeal: true
# syncOptions:
# - CreateNamespace=true