ingress werkt :)

This commit is contained in:
2024-10-29 12:06:08 +01:00
parent dc61328a2b
commit a96527c745
2 changed files with 63 additions and 0 deletions

View File

@@ -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

View File

@@ -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