summaryrefslogtreecommitdiff
path: root/apps/heimdall/templates/ingress.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'apps/heimdall/templates/ingress.yaml')
-rw-r--r--apps/heimdall/templates/ingress.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/heimdall/templates/ingress.yaml b/apps/heimdall/templates/ingress.yaml
new file mode 100644
index 0000000..cd07205
--- /dev/null
+++ b/apps/heimdall/templates/ingress.yaml
@@ -0,0 +1,22 @@
+{{- if .Values.ingress.enabled }}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: {{ include "heimdall.name" . }}-ingress
+ namespace: {{ .Release.Namespace }}
+ labels:
+ {{- include "heimdall.labels" . | nindent 4 }}
+spec:
+ ingressClassName: {{ .Values.ingress.className }}
+ rules:
+ - host: {{ .Values.ingress.host }}
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: {{ include "heimdall.name" . }}-service
+ port:
+ number: {{ .Values.service.port }}
+{{- end }}