mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
111 lines
2.6 KiB
YAML
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.22.2123
|
|
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/auth?email=wahyd4%40gmail.com"
|
|
nginx.ingress.kubernetes.io/auth-signin: "https://pass.junv.cc/?email=wahyd4%40gmail.com&redirect=https%3A%2F%2F$host$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
|