mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 19:43:12 +00:00
30 lines
675 B
YAML
30 lines
675 B
YAML
{{- range $name, $config := .Values.ingresses }}
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ $.Release.Name }}-{{ $name }}
|
|
labels:
|
|
{{- include "tfa.labels" $ | nindent 4 }}
|
|
{{- with $config.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
- host: {{ $config.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ $.Release.Name }}
|
|
port:
|
|
number: {{ $.Values.service.port }}
|
|
{{- with $config.tls }}
|
|
tls:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|