From b80bf7b7fb79273d6856d4e9779d4c1e04c577cf Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sat, 4 Oct 2025 16:00:57 -0400 Subject: [PATCH] enable tailscale ingress for torrents --- .../ingress/templates/_helpers/ingress.tpl | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/charts/apps/ingress/templates/_helpers/ingress.tpl b/charts/apps/ingress/templates/_helpers/ingress.tpl index 5fc9488..8a7e565 100644 --- a/charts/apps/ingress/templates/_helpers/ingress.tpl +++ b/charts/apps/ingress/templates/_helpers/ingress.tpl @@ -125,4 +125,29 @@ spec: number: {{.port | default 80}} path: {{ .path | default "/" }} pathType: Prefix + +{{ if .useTailscale }} +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: "tailscale-{{.prefix}}" + namespace: {{ .namespace }} +spec: + ingressClassName: tailscale + tls: + - hosts: + - {{ .prefix }} + rules: + - http: + paths: + - backend: + service: + name: "{{.service}}" + port: + number: {{.port | default 80}} + path: {{ .path | default "/" }} + pathType: Prefix +{{ end }} + {{- end -}} \ No newline at end of file