Initial commit

This commit is contained in:
helmchart
2025-11-20 07:40:48 +00:00
commit 8d805728f4
10 changed files with 302 additions and 0 deletions

39
templates/ingress.yaml Normal file
View File

@@ -0,0 +1,39 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "{{ .Chart.Name }}.fullname" . }}
labels:
{{- include "{{ .Chart.Name }}.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.ingress.annotations | nindent 4 }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ include "{{ .Chart.Name }}.fullname" $ }}
port:
number: {{ $.Values.service.port }}
{{- end }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- secretName: {{ .secretName }}
hosts:
{{- range .hosts }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}