17 lines
434 B
YAML
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 }} |