first commit

This commit is contained in:
2025-11-15 19:53:41 +08:00
commit ec97834a55
14 changed files with 1828 additions and 0 deletions

40
templates/ingress.yaml Normal file
View File

@@ -0,0 +1,40 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pms-chart.fullname" . }}-ingress
labels:
name: {{ include "pms-chart.fullname" . }}-ingress
{{ include "pms-chart.labels" . | indent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
rules:
- host: {{ trimPrefix "https://" .Values.ingress.url }}
http:
paths:
- path: '/'
pathType: Prefix
backend:
service:
name: {{ include "pms-chart.fullname" . }}
port:
number: 32400
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ tpl . $ | quote }}
{{- end }}
{{- with .secretName }}
secretName: {{ tpl . $ }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}