feat: add gluetun authentication ConfigMap and mount it in qBittorrent deployment

This commit is contained in:
Nik Afiq 2026-05-12 22:41:45 +09:00
parent 5275c5186a
commit 6e5b8fa241

View File

@ -21,6 +21,20 @@ spec:
requests: requests:
storage: 1Gi storage: 1Gi
--- ---
apiVersion: v1
kind: ConfigMap
metadata:
name: gluetun-auth
namespace: downloads
data:
config.toml: |
[[roles]]
name = "public"
auth = "none"
routes = [
{method = "GET", path = "/v1/publicip/ip"}
]
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@ -66,11 +80,11 @@ spec:
value: "10.42.0.0/16,10.43.0.0/16,192.168.7.0/24" value: "10.42.0.0/16,10.43.0.0/16,192.168.7.0/24"
- name: BLOCK_IPV6 - name: BLOCK_IPV6
value: "on" value: "on"
- name: HTTP_CONTROL_SERVER_AUTH_CONFIG_FILEPATH
value: ""
volumeMounts: volumeMounts:
- name: tun - name: tun
mountPath: /dev/net/tun mountPath: /dev/net/tun
- name: gluetun-auth
mountPath: /gluetun/auth
ports: ports:
- containerPort: 8000 - containerPort: 8000
- name: qbittorrent - name: qbittorrent
@ -103,6 +117,9 @@ spec:
hostPath: hostPath:
path: /mnt/storage/torrents path: /mnt/storage/torrents
type: Directory type: Directory
- name: gluetun-auth
configMap:
name: gluetun-auth
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service