helm-charts/headscale-ui/templates/ingress.yaml

43 lines
1 KiB
YAML
Raw Permalink Normal View History

2023-07-30 14:37:15 +02:00
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "headscale-ui.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "headscale-ui.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
2024-05-30 16:26:40 +02:00
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
2023-07-30 14:37:15 +02:00
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ $fullName }}
port:
2024-05-30 16:26:40 +02:00
name: http
2023-07-30 14:37:15 +02:00
{{- end }}
{{- end }}
{{- end }}