Add ingress

This commit is contained in:
Jonny Ervine 2023-09-27 21:20:42 +08:00
parent f797416bec
commit b60f2a7407

View File

@ -1,12 +1,12 @@
{{- if .Values.ingress.external.enabled -}}
{{- $fullName := include "emby.fullname" . -}}
{{- $fullName := include "jellyfin.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-ext
labels:
{{- include "emby.labels" . | nindent 4 }}
{{- include "jellyfin.labels" . | nindent 4 }}
{{- with .Values.ingress.external.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@ -40,14 +40,14 @@ spec:
{{- end }}
---
{{- if .Values.ingress.internal.enabled -}}
{{- $fullName := include "emby.fullname" . -}}
{{- $fullName := include "jellyfin.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-int
labels:
{{- include "emby.labels" . | nindent 4 }}
{{- include "jellyfin.labels" . | nindent 4 }}
{{- with .Values.ingress.external.annotations }}
annotations:
{{- toYaml . | nindent 4 }}