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

29 lines
817 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.ingress.name }}
namespace: {{ .Release.Namespace }}
{{- if .Values.ingress.annotations }}
annotations: {{ toYaml .Values.ingress.annotations | nindent 4 }}
{{- end}}
spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.tls.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ .Values.service.name }}
port:
number: 8000