enable tailscale ingress for torrents

This commit is contained in:
ari committed 2025-10-04 16:00:57 -04:00
1 parent e7d702320d
commit b80bf7b7fb
1 file changed
+25
@@ -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 -}}