feat(jackett): add jackett deployment, service, pvc and migration scripts
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s

This commit is contained in:
bart
2026-10-30 10:08:18 +01:00
parent bb7e98f400
commit 80321ac4a9
8 changed files with 317 additions and 0 deletions
+99
View File
@@ -0,0 +1,99 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jackett
namespace: htpc
labels:
app.kubernetes.io/name: jackett
app.kubernetes.io/part-of: htpc
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: jackett
template:
metadata:
labels:
app: jackett
app.kubernetes.io/name: jackett
app.kubernetes.io/part-of: htpc
spec:
nodeSelector:
kubernetes.io/hostname: vmserver
initContainers:
- name: migrate-config
image: lscr.io/linuxserver/jackett:latest
imagePullPolicy: IfNotPresent
command:
- /bin/bash
- -c
- |
if [ ! -f /config/ServerConfig.json ] && [ -f /host-config/ServerConfig.json ]; then
echo "Migrating Jackett config and indexers from host..."
cp -a /host-config/* /config/
fi
chown -R 33:33 /config
volumeMounts:
- name: config
mountPath: /config
- name: host-config
mountPath: /host-config
readOnly: true
containers:
- name: jackett
image: lscr.io/linuxserver/jackett:latest
imagePullPolicy: IfNotPresent
env:
- name: PUID
value: "33"
- name: PGID
value: "33"
- name: TZ
value: "Europe/Amsterdam"
- name: AUTO_UPDATE
value: "false"
ports:
- name: http
containerPort: 9117
hostPort: 9117
protocol: TCP
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 1000m
memory: 1Gi
volumeMounts:
- name: config
mountPath: /config
- name: datadisk
mountPath: /datadisk
livenessProbe:
httpGet:
path: /jackett/health
port: 9117
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /jackett/health
port: 9117
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
persistentVolumeClaim:
claimName: jackett-config
- name: host-config
hostPath:
path: /home/bart/.config/Jackett
type: DirectoryOrCreate
- name: datadisk
hostPath:
path: /datadisk
type: Directory
+7
View File
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- service.yaml
- deployment.yaml
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jackett-config
namespace: htpc
labels:
app.kubernetes.io/name: jackett
app.kubernetes.io/part-of: htpc
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 10Gi
+17
View File
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: jackett
namespace: htpc
labels:
app.kubernetes.io/name: jackett
app.kubernetes.io/part-of: htpc
spec:
type: ClusterIP
ports:
- port: 9117
targetPort: 9117
protocol: TCP
name: http
selector:
app: jackett
+1
View File
@@ -10,5 +10,6 @@ resources:
- lidarr
- transmission
- slskd
- jackett