Files
oc-k8s/cmd/opencloud-chart/templates/prometheus.yaml

17 lines
434 B
YAML
Raw Permalink Normal View History

2026-01-06 08:23:16 +01:00
{{- if index .Values "prometheus" "enabled" }}
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
2026-01-06 08:23:16 +01:00
name: prometheus-ingress
spec:
2026-01-06 08:23:16 +01:00
entryPoints:
- web
routes:
- kind: Rule
match: Host(`{{ .Values.host }}`) && PathPrefix(`/monitor`)
services:
- kind: Service
2026-01-15 15:48:10 +01:00
name: {{ .Release.Name }}-prometheus-server
2026-01-06 08:23:16 +01:00
passHostHeader: true
2026-01-15 15:48:10 +01:00
port: 80
{{- end }}