diff --git a/k8s/charts/templates/app-prometheus.yaml b/k8s/charts/templates/app-prometheus.yaml index 1f33430..98fafe3 100644 --- a/k8s/charts/templates/app-prometheus.yaml +++ b/k8s/charts/templates/app-prometheus.yaml @@ -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