46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "template.fullname" . }}-ingress
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
- host: {{ .Values.ingress.hostname }}
|
|
http:
|
|
paths:
|
|
- path: "/"
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "template.fullname" . }}-service-tcp
|
|
port:
|
|
number: 8443
|
|
|
|
{{ if .Values.ingress.redirect.enabled }}
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "template.fullname" . }}-ingress-redirect
|
|
{{- with .Values.ingress.redirect.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
- host: {{ .Values.ingress.hostname }}
|
|
http:
|
|
paths:
|
|
- path: "/"
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "template.fullname" . }}-service-tcp
|
|
port:
|
|
number: 8443
|
|
{{ end }}
|