Running all stack
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
{{- if .Values.prometheus.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
{{- if index .Values "prometheus" "enabled" }}
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-monitor.{{ .Release.Namespace }}
|
||||
labels:
|
||||
release: {{ .Release.Name }}
|
||||
name: prometheus-ingress
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: monitor
|
||||
endpoints:
|
||||
- port: http
|
||||
interval: 30s
|
||||
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