Files
infrastructure/clusters/cl01tl/manifests/qbittorrent/Deployment-qbittorrent-qbit-manage.yaml

130 lines
4.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent-qbit-manage
labels:
app.kubernetes.io/controller: qbit-manage
app.kubernetes.io/instance: qbittorrent
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: qbittorrent
helm.sh/chart: qbittorrent-4.6.2
annotations:
reloader.stakater.com/auto: "true"
namespace: qbittorrent
spec:
revisionHistoryLimit: 3
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/controller: qbit-manage
app.kubernetes.io/name: qbittorrent
app.kubernetes.io/instance: qbittorrent
template:
metadata:
annotations:
checksum/secrets: 545cc0ac43a8c257917ff35f6fed45976eaefcbaed5d63bbd60d3b932dc71794
labels:
app.kubernetes.io/controller: qbit-manage
app.kubernetes.io/instance: qbittorrent
app.kubernetes.io/name: qbittorrent
spec:
enableServiceLinks: false
serviceAccountName: qbittorrent
automountServiceAccountToken: true
hostIPC: false
hostNetwork: false
hostPID: false
dnsPolicy: ClusterFirst
initContainers:
- command:
- /bin/sh
- -ec
- |
cp /tmp/config.yml /app/config/config.yml
image: busybox:1.37.0@sha256:1487d0af5f52b4ba31c7e465126ee2123fe3f2305d638e7827681e7cf6c83d5e
name: init-copy-config
volumeMounts:
- mountPath: /tmp/config.yml
mountPropagation: None
name: qbit-manage-config
readOnly: true
subPath: config.yml
- mountPath: /app/config
name: qbit-manage-config-data
containers:
- env:
- name: TZ
value: America/Chicago
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: APPRISE_STORAGE_MODE
value: memory
- name: APPRISE_STATEFUL_MODE
value: disabled
- name: APPRISE_WORKER_COUNT
value: "1"
- name: APPRISE_STATELESS_URLS
valueFrom:
secretKeyRef:
key: ntfy-url
name: qbit-manage-config
image: ghcr.io/caronc/apprise:v1.3.3@sha256:4bfeac268ba87b8e08e308c9aa0182fe99e9501ec464027afc333d1634e65977
name: apprise-api
- env:
- name: TZ
value: America/Chicago
- name: QBT_SCHEDULE
value: 0 * * * *
- name: QBT_STARTUP_DELAY
value: "360"
- name: QBT_CONFIG_DIR
value: /app/config/
- name: QBT_LOGFILE
value: /app/var/activity.log
- name: QBT_LOG_LEVEL
value: INFO
image: ghcr.io/stuffanthings/qbit_manage:v4.7.0@sha256:8786f2efc6fb8e26281f09bf6c5d0004e2d2420fd4781af0aed123ae01558e21
imagePullPolicy: IfNotPresent
name: qbit-manage
resources:
requests:
cpu: 10m
memory: 280Mi
volumeMounts:
- mountPath: /qbittorrent/qBittorrent
name: config-data
- mountPath: /tmp/config.yml
mountPropagation: None
name: qbit-manage-config
readOnly: true
subPath: config.yml
- mountPath: /app/config
name: qbit-manage-config-data
- mountPath: /app/var
name: qbit-manage-config-var
- mountPath: /mnt/store
name: storage
volumes:
- name: config-data
persistentVolumeClaim:
claimName: qbittorrent-config-data
- csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: qbit-manage-config
name: qbit-manage-config
- name: qbit-manage-config-data
persistentVolumeClaim:
claimName: qbittorrent-qbit-manage-config-data
- name: qbit-manage-config-var
persistentVolumeClaim:
claimName: qbittorrent-qbit-manage-config-var
- name: storage
persistentVolumeClaim:
claimName: qbittorrent-nfs-storage