63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: qbittorent-nas
|
|
labels:
|
|
app: qbittorent-nas
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: qbittorent-nas
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: qbittorent-nas
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: nas.homenet
|
|
volumes:
|
|
- name: config
|
|
hostPath:
|
|
path: /mnt/storage/Storage/configs/qbittorrent
|
|
type: DirectoryOrCreate
|
|
- name: media
|
|
hostPath:
|
|
path: /mnt/storage/Storage/Donwloads
|
|
type: DirectoryOrCreate
|
|
containers:
|
|
- name: qbittorrent
|
|
image: 'linuxserver/qbittorrent:latest'
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: media
|
|
mountPath: /downloads
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: qbittorent-nas
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: qbittorent-nas
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
nodePort: 31337
|
|
protocol: TCP
|