- redis-ui.git
- k8s
- chart
- templates
- ingress.yaml
This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: p3x-redis-ui-ingress
labels:
app: p3x-redis-ui
chart: p3x-redis-ui
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.ingress.labels }}
{{ toYaml .Values.ingress.labels | indent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
rules:
{{- if .Values.ingress.enabled }}
{{- $uiPath := .Values.ingress.path -}}
{{- $uiPort := .Values.ingress.service.port -}}
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: {{ $uiPath }}
pathType: Prefix
backend:
service:
name: p3x-redis-ui-service
port:
number: {{ $uiPort }}
{{- end }}
{{- end }}
{{- end }}