Files
cloud-config/mushroom/helm/templates/ingress.yaml
Paul Mathieu 0cf7c9b908 Initial commit: mushroom, zetikettes
With basic config to have TLS certs with ACME.
It works!

TODO:
- gitea
- bar-jupyter
2026-03-02 06:48:46 +00:00

37 lines
895 B
YAML

{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "mushroom.fullname" . }}
labels:
{{- include "mushroom.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
{{- range .Values.ingress.hosts }}
- {{ . | quote }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "mushroom.fullname" $ }}
port:
number: {{ $.Values.service.port }}
{{- end }}
{{- end }}