2024-11-14 08:13:40 +01:00
|
|
|
{{- if .Values.ingress.enabled -}}
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}
|
2024-11-20 10:36:59 +01:00
|
|
|
namespace: {{ .Release.Namespace }}
|
2024-11-14 08:13:40 +01:00
|
|
|
labels:
|
|
|
|
{{- include "basic-app.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.ingress.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
|
|
{{- if and .Values.ingress.tls .Values.ingress.tls.enabled }}
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
{{- range .Values.ingress.tls.hosts }}
|
|
|
|
- {{ . | quote }}
|
|
|
|
{{- end }}
|
|
|
|
secretName: {{ .Values.ingress.tls.secretName }}
|
|
|
|
{{- end }}
|
|
|
|
rules:
|
|
|
|
{{- range .Values.ingress.hosts }}
|
|
|
|
- host: {{ .host | quote }}
|
|
|
|
http:
|
|
|
|
paths:
|
2024-11-20 10:32:53 +01:00
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
2024-11-14 08:13:40 +01:00
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: {{ $.Release.Name }}
|
|
|
|
port:
|
2024-11-20 10:32:53 +01:00
|
|
|
number: 80
|
|
|
|
- path: "/.webhook"
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: {{ $.Release.Name }}
|
|
|
|
port:
|
|
|
|
number: 8000
|
2024-12-04 17:46:50 +01:00
|
|
|
{{- range .api }}
|
|
|
|
- path: {{ .prefix | quote }}
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: {{ .service }}
|
|
|
|
port:
|
|
|
|
name: {{ .port }}
|
|
|
|
{{- end }}
|
2024-11-14 08:13:40 +01:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|