mirror of
https://github.com/lukaszraczylo/helm-charts.git
synced 2026-07-05 06:05:32 +00:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
{{- if .Values.ingress.enabled -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "gohoarder.fullname" . }}
|
|
labels:
|
|
{{- include "gohoarder.labels" . | nindent 4 }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.className }}
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.ingress.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }}
|
|
secretName: {{ .Values.ingress.tls.secretName }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) | quote }}
|
|
http:
|
|
paths:
|
|
# Route all traffic to frontend (which now includes reverse proxy to backend)
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "gohoarder.fullname" . }}-frontend
|
|
port:
|
|
number: {{ .Values.frontend.service.port }}
|
|
{{- end }}
|