Merge pull request #680 from 3dwardch3ng/app/qBittorrent
add app qbittorrent
This commit is contained in:
56
apps/qbittorrent/base/deployment.yaml
Normal file
56
apps/qbittorrent/base/deployment.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
namespace: qbittorrent
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: homer
|
||||||
|
image: b4bz/homer:v24.05.1
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: Australia/Sydney
|
||||||
|
- name: WEBUI_PORT
|
||||||
|
value: "8080"
|
||||||
|
- name: TORRENTING_PORT
|
||||||
|
value: "6881"
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
containerPort: 8080
|
||||||
|
name: qbittorrent-ui
|
||||||
|
- protocol: TCP
|
||||||
|
containerPort: 6881
|
||||||
|
name: qbittorrent-torrenting
|
||||||
|
- protocol: UDP
|
||||||
|
containerPort: 6881
|
||||||
|
name: qbittorrent-torrenting-udp
|
||||||
|
volumeMounts:
|
||||||
|
- name: qbittorrent-config
|
||||||
|
mountPath: /config
|
||||||
|
- name: qbittorrent-downloads
|
||||||
|
mountPath: /downloads
|
||||||
|
volumes:
|
||||||
|
- name: qbittorrent-config
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/qbittorrent/config
|
||||||
|
type: Directory
|
||||||
|
- name: qbittorrent-downloads
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/qbittorrent/downloads
|
||||||
|
type: Directory
|
||||||
5
apps/qbittorrent/base/kustomization.yaml
Normal file
5
apps/qbittorrent/base/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./deployment.yaml
|
||||||
|
- ./service.yaml
|
||||||
25
apps/qbittorrent/base/service.yaml
Normal file
25
apps/qbittorrent/base/service.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: qbittorrent
|
||||||
|
namespace: qbittorrent
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: qbittorrent
|
||||||
|
type: LoadBalancer
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 18080
|
||||||
|
targetPort: 8080
|
||||||
|
name: qbittorrent-ui
|
||||||
|
- protocol: TCP
|
||||||
|
port: 16881
|
||||||
|
targetPort: 6881
|
||||||
|
name: qbittorrent-torrenting
|
||||||
|
- protocol: UDP
|
||||||
|
port: 16881
|
||||||
|
targetPort: 6881
|
||||||
|
name: qbittorrent-torrenting-udp
|
||||||
12
apps/qbittorrent/env/k3s-cluster/config.json
vendored
Normal file
12
apps/qbittorrent/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"appName": "qbittorrent",
|
||||||
|
"userGivenName": "qbittorrent",
|
||||||
|
"namespace": "qbittorrent",
|
||||||
|
"destNamespace": "qbittorrent",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/qbittorrent/env/k3s-cluster",
|
||||||
|
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": null
|
||||||
|
}
|
||||||
4
apps/qbittorrent/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/qbittorrent/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
Reference in New Issue
Block a user