Add internal ingress
This commit is contained in:
parent
7c8dae6735
commit
fd3aba066d
@ -38,3 +38,44 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
---
|
||||||
|
{{- if .Values.ingress.internal.enabled -}}
|
||||||
|
{{- $fullName := include "emby.fullname" . -}}
|
||||||
|
{{- $svcPort := .Values.service.port -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: {{ $fullName }}-int
|
||||||
|
labels:
|
||||||
|
{{- include "emby.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.ingress.external.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.ingress.internal.tls }}
|
||||||
|
tls:
|
||||||
|
{{- range .Values.ingress.internal.tls }}
|
||||||
|
- hosts:
|
||||||
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
rules:
|
||||||
|
{{- range .Values.ingress.internal.hosts }}
|
||||||
|
- host: {{ .host | quote }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
{{- range .paths }}
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@ -36,17 +36,17 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
internal:
|
internal:
|
||||||
enabled: false
|
enabled: true
|
||||||
annotations: {}
|
annotations:
|
||||||
# kubernetes.io/ingress.class: nginx
|
kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: emby.k8s.ipa.champion
|
||||||
paths: []
|
paths: []
|
||||||
tls: []
|
tls:
|
||||||
# - secretName: chart-example-tls
|
- secretName: emby-internal-tls
|
||||||
# hosts:
|
hosts:
|
||||||
# - chart-example.local
|
- emby.k8s.ipa.champion
|
||||||
external:
|
external:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
@ -54,8 +54,7 @@ ingress:
|
|||||||
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
nginx.ingress.kubernetes.io/backend-protocol: HTTP
|
||||||
hosts:
|
hosts:
|
||||||
- host: emby.ervine.cloud
|
- host: emby.ervine.cloud
|
||||||
paths:
|
paths: []
|
||||||
- path: "/"
|
|
||||||
tls:
|
tls:
|
||||||
- secretName: emby-ervine-cloud-tls
|
- secretName: emby-ervine-cloud-tls
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user