proper-website-2/.drone/helm/chart/templates/ingress.yaml

36 lines
891 B
YAML
Raw Normal View History

2022-03-12 17:47:01 +01:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.ingress.name }}
namespace: {{ .Release.Namespace }}
2022-03-12 19:57:43 +01:00
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
2022-03-12 17:47:01 +01:00
spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
2022-03-12 19:26:04 +01:00
{{- range .Values.ingress.tls }}
2022-03-12 17:47:01 +01:00
- hosts:
2022-03-12 19:26:04 +01:00
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
2022-03-12 17:47:01 +01:00
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
2022-03-12 19:40:30 +01:00
name: {{ $.Values.service.name }}
2022-03-12 17:47:01 +01:00
port:
2022-03-12 19:31:01 +01:00
number: 8000
{{- end }}
{{- end }}