Files
home-docker/media/jackett.yaml
T
2025-11-24 12:47:44 +11:00

111 lines
2.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: jackett
spec:
revisionHistoryLimit: 3
selector:
matchLabels:
app: jackett
replicas: 1
template:
metadata:
labels:
app: jackett
spec:
imagePullSecrets:
- name: regcred
volumes:
- name: config
persistentVolumeClaim:
claimName: configs-nfs
- name: downloads
persistentVolumeClaim:
claimName: downloads-nfs
- name: admin-password
secret:
secretName: jackett-admin-password
items:
- key: password
path: password
containers:
- name: jackett
image: mirror.gcr.io/linuxserver/jackett:0.24.247
securityContext:
runAsUser: 0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9117
name: jackett-port
protocol: TCP
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: Australia/Melbourne
- name: FILE__PASSWORD
value: /secrets/jackett/password
volumeMounts:
- name: config
subPath: jackett
mountPath: /config
- name: downloads
subPath: jackett
mountPath: /downloads
- mountPath: /secrets/jackett
name: admin-password
readOnly: true
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 1000m
memory: 1024Mi
---
apiVersion: v1
kind: Service
metadata:
name: jackett
labels:
app: jackett
spec:
type: ClusterIP
ports:
- port: 80
targetPort: jackett-port
protocol: TCP
selector:
app: jackett
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jackett-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-url: "https://pass.junv.cc/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://pass.junv.cc/oauth2/start?rd=https://$host$escaped_request_uri"
spec:
tls:
- hosts:
- jackett.junv.cc
secretName: jackett-tls
rules:
- host: jackett.junv.cc
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jackett
port:
number: 80