Skip to content

Instantly share code, notes, and snippets.

@0xEmma
Created September 13, 2023 15:58
Show Gist options
  • Save 0xEmma/171200652493e703856f87d8ee391dce to your computer and use it in GitHub Desktop.
Save 0xEmma/171200652493e703856f87d8ee391dce to your computer and use it in GitHub Desktop.
qb
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
namespace: default
labels:
app: qbittorrent
spec:
selector:
matchLabels:
app: qbittorrent
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: qbittorrent
spec:
# initContainers:
# Init containers are exactly like regular containers, except:
# - Init containers always run to completion.
# - Each init container must complete successfully before the next one starts.
containers:
- name: qbittorrent
image: cr.hotio.dev/hotio/qbittorrent
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 30
timeoutSeconds: 2
successThreshold: 1
failureThreshold: 15
periodSeconds: 10
envFrom:
- configMapRef:
name: qbittorrent-env
ports:
- containerPort: 8080
name: web
volumeMounts:
- name: torrents
mountPath: /data
- name: qbconfig
mountPath: /config
volumes:
- name: torrents
persistentVolumeClaim:
claimName: torrent-pvc
- name: qbconfig
persistentVolumeClaim:
claimName: torrent-qb-config-pvc
nodeSelector:
kubernetes.io/hostname: furry-node-2 # Needs kubelet arg for unsafe sysctl
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment