mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
updates
This commit is contained in:
51
charts/monitoring/templates/kube-prometheus-stack.yaml
Normal file
51
charts/monitoring/templates/kube-prometheus-stack.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-prometheus-community'
|
||||
spec:
|
||||
interval: 1h
|
||||
url: https://prometheus-community.github.io/helm-charts/
|
||||
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-prometheus-community'
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: kube-prometheus-stack
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
name: '{{ .Release.Name }}-prometheus-community'
|
||||
namespace: '{{ .Release.Namespace }}'
|
||||
interval: 1h
|
||||
values: {}
|
||||
|
||||
---
|
||||
apiVersion: homelab.mortenolsen.pro/v1
|
||||
kind: HttpService
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-prometheus-community'
|
||||
spec:
|
||||
environment: '{{ .Values.globals.environment }}'
|
||||
subdomain: '{{ .Values.graphana.subdomain }}'
|
||||
destination:
|
||||
host: '{{ .Release.Name }}-prometheus-community-grafana.{{ .Release.Namespace }}.svc.cluster.local'
|
||||
port:
|
||||
number: 80
|
||||
|
||||
---
|
||||
apiVersion: homelab.mortenolsen.pro/v1
|
||||
kind: HttpService
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-prometheus-community-alertmanager'
|
||||
spec:
|
||||
environment: '{{ .Values.globals.environment }}'
|
||||
subdomain: '{{ .Values.graphana.subdomain }}'
|
||||
destination:
|
||||
host: '{{ .Release.Name }}-prometheus-community-alertmanager.{{ .Release.Namespace }}.svc.cluster.local'
|
||||
port:
|
||||
number: 9093
|
||||
Reference in New Issue
Block a user