Files
oc-k8s/cmd/opencloud-chart/templates/prometheus.yaml
2026-01-15 15:48:10 +01:00

17 lines
434 B
YAML

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