ingress werkt :)
This commit is contained in:
16
k8s_manifests/ingress.yaml
Normal file
16
k8s_manifests/ingress.yaml
Normal 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
|
47
k8s_manifests/qbittorrent.yaml
Normal file
47
k8s_manifests/qbittorrent.yaml
Normal 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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user