Files
Servarr_kube/qbittorrent.kube.yaml
T
2024-07-24 15:15:32 +01:00

91 lines
1.8 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: servarr
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
namespace: servarr
spec:
replicas: 1
selector:
matchLabels:
app: qbittorrent
template:
metadata:
labels:
app: qbittorrent
spec:
hostNetwork: false
nodeName: kube-master
containers:
- name: qbittorrent
image: lscr.io/linuxserver/qbittorrent:latest
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: "Etc/UTC"
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: WEBUI_PORT
value: "8080"
resources:
limits:
cpu: 200m
memory: 250Mi
volumeMounts:
- name: qbittorrent-config
mountPath: /config
- name: servarr-data
mountPath: /disk
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 6881
protocol: TCP
- containerPort: 6881
protocol: UDP
# securityContext:
# sysctls:
# - name: net.ipv4.conf.all.src_valid_mark
# value: "1"
# - name: net.ipv6.conf.all.disable_ipv6
# value: "1"
volumes:
- name: servarr-data
hostPath:
path: /data
- name: qbittorrent-config
hostPath:
path: /opt/kubernetes/Servarr_kube/configs/qbittorrent/
---
apiVersion: v1
kind: Service
metadata:
name: qbittorrent
namespace: servarr
spec:
ports:
- protocol: TCP
name: web-interface
port: 8080
# nodePort: 30302
- protocol: TCP
name: torrent-tcp
port: 6881
# nodePort: 31609
- protocol: UDP
name: torrents-udp
port: 6881
# nodePort: 31609
# type: NodePort
selector:
app: qbittorrent