chart-unifi_network_application: add
This commit is contained in:
45
charts/unifi-network-application/templates/ingress.yaml
Normal file
45
charts/unifi-network-application/templates/ingress.yaml
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
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 }}
|
||||
Reference in New Issue
Block a user