init
This commit is contained in:
36
helm/loki-stack/templates/grafana-ingress.yaml
Normal file
36
helm/loki-stack/templates/grafana-ingress.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
{{- if .Values.grafana.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "loki-stack.fullname" . }}-grafana
|
||||
labels:
|
||||
{{- include "loki-stack.labels" . | nindent 4 }}
|
||||
app.kubernetes.io/component: grafana
|
||||
{{- with .Values.grafana.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.grafana.ingress.className }}
|
||||
ingressClassName: {{ .Values.grafana.ingress.className }}
|
||||
{{- end }}
|
||||
{{- if .Values.grafana.ingress.tls }}
|
||||
tls:
|
||||
{{- toYaml .Values.grafana.ingress.tls | nindent 4 }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.grafana.ingress.hosts }}
|
||||
- host: {{ .host | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- range .paths }}
|
||||
- path: {{ .path }}
|
||||
pathType: {{ .pathType }}
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "loki-stack.fullname" $ }}-grafana
|
||||
port:
|
||||
name: http
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user