113 lines
2.4 KiB
YAML
113 lines
2.4 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: arr
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
SERVER_COUNTRIES: Switzerland
|
|
TZ: America/New_York
|
|
VPN_SERVICE_PROVIDER: mullvad
|
|
VPN_TYPE: openvpn
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: gluetun-env-29ht65fg72
|
|
namespace: arr
|
|
---
|
|
apiVersion: v1
|
|
data:
|
|
OPENVPN_USER: NzMzODgzMzQyMjMxMDIwNA==
|
|
kind: Secret
|
|
metadata:
|
|
name: mullvad-secret
|
|
namespace: arr
|
|
type: Opaque
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: qbittorrent
|
|
namespace: arr
|
|
spec:
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: qtorrent-http
|
|
selector:
|
|
app: gluetun
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
checksum/secret-generator.yaml: ee04727f42edb84f45970dc517940686f4dadc241155b8df7cd253cec5d8309e
|
|
checksum/secret.mullvad.enc.yaml: 97c4a8210c9face06d08f8f73b8a71385a5dd072bb447cb05843907bef80dcae
|
|
labels:
|
|
app: gluetun
|
|
name: gluetun-deployment
|
|
namespace: arr
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: gluetun
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gluetun
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: WEBUI_PORT
|
|
value: "9091"
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
name: qbittorrent
|
|
ports:
|
|
- containerPort: 9091
|
|
name: qtorrent-http
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 128Mi
|
|
initContainers:
|
|
- envFrom:
|
|
- configMapRef:
|
|
name: gluetun-env-29ht65fg72
|
|
- secretRef:
|
|
name: mullvad-secret
|
|
image: ghcr.io/qdm12/gluetun:v3.39.1
|
|
imagePullPolicy: Always
|
|
name: gluetun
|
|
restartPolicy: Always
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
volumeMounts:
|
|
- mountPath: /gluetun
|
|
name: gluetun-config
|
|
- command:
|
|
- sh
|
|
- -c
|
|
- |
|
|
while ! ping -c 1 8.8.8.8; do
|
|
echo "Ping failed, retrying in 15"
|
|
sleep 15
|
|
done
|
|
echo "ping succesfull, exiting"
|
|
image: busybox
|
|
name: test-connectivity
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: gluetun-config
|