feat(jackett): add jackett deployment, service, pvc and migration scripts
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
Sync HTPC Manifests to GitOps / Sync Manifests to GitOps Repo (push) Successful in 4s
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- service.yaml
|
||||
- deployment.yaml
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user