diff --git a/k8s_manifests/ingress.yaml b/k8s_manifests/ingress.yaml new file mode 100644 index 0000000..74090a5 --- /dev/null +++ b/k8s_manifests/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: main-ingress +spec: + rules: + - host: "qbittorrent.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-qbittorrent + port: + number: 80 diff --git a/k8s_manifests/qbittorrent.yaml b/k8s_manifests/qbittorrent.yaml new file mode 100644 index 0000000..44ed8e5 --- /dev/null +++ b/k8s_manifests/qbittorrent.yaml @@ -0,0 +1,47 @@ +apiVersion: v1 +kind: Pod +metadata: + name: qbittorrent + labels: + app.kubernetes.io/name: qbittorrent +spec: + volumes: + - name: nfs-vol + nfs: + server: 192.168.0.114 + path: /mnt/test1/media/testing + containers: + - name: qbittorrent + image: ghcr.io/hotio/qbittorrent:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: UMASK + value: "002" + - name: TZ + value: "Etc/UTC" + - name: WEBUI_PORTS + value: "8080/tcp,8080/udp" + ports: + - containerPort: 8080 + volumeMounts: + - name: nfs-vol + mountPath: /media +--- +apiVersion: v1 +kind: Service +metadata: + name: svc-qbittorrent +spec: + selector: + app.kubernetes.io/name: qbittorrent + ports: + - name: webui + protocol: TCP + port: 80 + targetPort: 8080 + + +