apiVersion: apps/v1 kind: Deployment metadata: name: gluetun-deployment labels: app: gluetun annotations: checksum/secret-generator.yaml: ee04727f42edb84f45970dc517940686f4dadc241155b8df7cd253cec5d8309e checksum/secret.mullvad.enc.yaml: 97c4a8210c9face06d08f8f73b8a71385a5dd072bb447cb05843907bef80dcae spec: replicas: 1 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 selector: matchLabels: app: gluetun template: metadata: labels: app: gluetun spec: initContainers: - name: gluetun image: ghcr.io/qdm12/gluetun:v3.39.1 imagePullPolicy: Always restartPolicy: Always securityContext: capabilities: add: - NET_ADMIN envFrom: - configMapRef: name: gluetun-env - secretRef: name: mullvad-secret volumeMounts: - name: gluetun-config mountPath: /gluetun - name: test-connectivity image: busybox command: - sh - '-c' - | sleep 60 while ! ping -c 1 8.8.8.8; do echo "Ping failed, retrying in 15" sleep 15 done echo "ping succesfull, exiting" containers: - name: qbittorrent image: lscr.io/linuxserver/qbittorrent:latest resources: requests: memory: 128Mi cpu: 250m limits: memory: 2Gi cpu: 2000m ports: - name: qtorrent-http containerPort: 8080 # containerPort: 9091 env: - name: PUID value: "1000" - name: PGID value: "1000" # - name: WEBUI_PORT # value: "9091" volumeMounts: - name: downloads mountPath: /downloads volumes: - name: gluetun-config emptyDir: {} - name: downloads emptyDir: {} # - name: transmission-config # emptyDir: {}