Add external ingress

This commit is contained in:
Jonny Ervine 2023-09-25 21:55:59 +08:00
parent 0a36f63e03
commit 66e66ae190
2 changed files with 9 additions and 1 deletions

View File

@ -34,8 +34,15 @@ spec:
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
backend: backend:
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else -}}
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: {{ $svcPort }} servicePort: {{ $svcPort }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -54,7 +54,8 @@ 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: