feat: add gluetun authentication ConfigMap and mount it in qBittorrent deployment
This commit is contained in:
parent
5275c5186a
commit
6e5b8fa241
@ -21,6 +21,20 @@ spec:
|
||||
requests:
|
||||
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
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@ -66,11 +80,11 @@ spec:
|
||||
value: "10.42.0.0/16,10.43.0.0/16,192.168.7.0/24"
|
||||
- name: BLOCK_IPV6
|
||||
value: "on"
|
||||
- name: HTTP_CONTROL_SERVER_AUTH_CONFIG_FILEPATH
|
||||
value: ""
|
||||
volumeMounts:
|
||||
- name: tun
|
||||
mountPath: /dev/net/tun
|
||||
- name: gluetun-auth
|
||||
mountPath: /gluetun/auth
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
- name: qbittorrent
|
||||
@ -103,6 +117,9 @@ spec:
|
||||
hostPath:
|
||||
path: /mnt/storage/torrents
|
||||
type: Directory
|
||||
- name: gluetun-auth
|
||||
configMap:
|
||||
name: gluetun-auth
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user