command
This commit is contained in:
18
utils/assets/templates/prometheus.yaml
Normal file
18
utils/assets/templates/prometheus.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- 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`)
|
||||
priority: 10
|
||||
services:
|
||||
- kind: Service
|
||||
name: {{ .Release.Name }}-monitor.{{ .Release.Namespace }}
|
||||
passHostHeader: true
|
||||
port: 9090
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user