33 lines
930 B
YAML
33 lines
930 B
YAML
{{- if .Values.ingress.enabled }}
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "vorgabenui.fullname" . }}
|
|
namespace: {{ .Values.global.namespace }}
|
|
labels:
|
|
{{- include "vorgabenui.labels" . | nindent 4 }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.className }}
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: {{ .Values.ingress.path }}
|
|
pathType: {{ .Values.ingress.pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "vorgabenui.fullname" . }}
|
|
port:
|
|
number: {{ .Values.django.service.port }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{- toYaml .Values.ingress.tls | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }} |