Expose Tautulli via Traefik Ingress.

Modernize the Ingress template to networking.k8s.io/v1 and enable class traefik for tautulli.ervine.cloud.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-25 22:45:53 +08:00
co-authored by Cursor
parent 4e7b9380aa
commit 6de12b0a67
2 changed files with 32 additions and 27 deletions
+15 -11
View File
@@ -1,11 +1,7 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled }}
{{- $fullName := include "tautulli.fullname" . -}} {{- $fullName := include "tautulli.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
@@ -16,7 +12,10 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.tls }} {{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls: tls:
{{- range .Values.ingress.tls }} {{- range .Values.ingress.tls }}
- hosts: - hosts:
@@ -25,17 +24,22 @@ spec:
{{- end }} {{- end }}
secretName: {{ .secretName }} secretName: {{ .secretName }}
{{- end }} {{- end }}
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - host: {{ .host | quote }}
http: http:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ .path }}
{{- with .pathType }}
pathType: {{ . }}
{{- end }}
backend: backend:
serviceName: {{ $fullName }} service:
servicePort: {{ $svcPort }} name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
+10 -9
View File
@@ -35,17 +35,18 @@ service:
port: 8181 port: 8181
ingress: ingress:
enabled: false enabled: true
className: traefik
annotations: {} annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts: hosts:
- host: chart-example.local - host: tautulli.ervine.cloud
paths: [] paths:
tls: [] - path: /
# - secretName: chart-example-tls pathType: Prefix
# hosts: tls:
# - chart-example.local - secretName: tautulli-ervine-cloud-tls
hosts:
- tautulli.ervine.cloud
resources: resources:
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious