Guest User

bittorrent deployment

a guest
Apr 6th, 2024
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.53 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   name: bittorrent
  5.   annotations:
  6.     security.alpha.kubernetes.io/unsafe-sysctls: net.ipv4.conf.all.src_valid_mark=1
  7.     security.alpha.kubernetes.io/unsafe-sysctls: net.ipv6.conf.all.disable_ipv6=0
  8.     security.alpha.kubernetes.io/unsafe-sysctls: net.ipv6.conf.all.forwarding=1
  9. spec:
  10.   replicas: 1
  11.   selector:
  12.     matchLabels:
  13.       app: bittorrent
  14.   template:
  15.     metadata:
  16.       labels:
  17.         app: bittorrent
  18.     spec:
  19.       nodeSelector:
  20.         kubernetes.io/hostname: obsidiana
  21.       containers:
  22.       - name: airvpn
  23.         image: linuxserver/wireguard:latest
  24.         livenessProbe:
  25.           exec:
  26.             command:
  27.              - /bin/sh
  28.               - -c
  29.               - "wg show | grep -q transfer"
  30.           initialDelaySeconds: 90
  31.           periodSeconds: 90
  32.         securityContext:
  33.           privileged: true
  34.           capabilities:
  35.             add: ["NET_ADMIN"]
  36.         env:
  37.         - name: PUID
  38.           value: "1000"
  39.         - name: PGID
  40.           value: "1000"
  41.         - name: TZ
  42.           value: America/Los_Angeles
  43.         volumeMounts:
  44.         - name: airvpn-config
  45.           mountPath: /etc/wireguard/
  46.         - name: lib-modules
  47.           mountPath: /lib/modules
  48.         ports:
  49.         - containerPort: 9091
  50.           protocol: TCP
  51.       - name: transmission
  52.         image: linuxserver/transmission:latest
  53.         livenessProbe:
  54.           httpGet:
  55.             path: /rpc
  56.             port: 9091
  57.             httpHeaders:
  58.               - name: Authorization
  59.                 value: Basic <redacted>
  60.         env:
  61.         - name: PUID
  62.           value: "1000"
  63.         - name: PGID
  64.           value: "1000"
  65.         - name: TZ
  66.           value: America/Los_Angeles
  67.         - name: USER
  68.           valueFrom:
  69.             secretKeyRef:
  70.               name: transmission-secrets
  71.               key: USER
  72.         - name: PASS
  73.           valueFrom:
  74.             secretKeyRef:
  75.               name: transmission-secrets
  76.               key: PASS
  77.         volumeMounts:
  78.         - name: transmission-config
  79.           mountPath: /config
  80.         - name: downloads
  81.           mountPath: /downloads
  82.       volumes:
  83.       - name: transmission-config
  84.         hostPath:
  85.           path: /srv/bittorrent/transmission/config
  86.       - name: airvpn-config
  87.         hostPath:
  88.           path: /srv/bittorrent/airvpn
  89.       - name: lib-modules
  90.         hostPath:
  91.           path: /lib/modules
  92.       - name: downloads
  93.         hostPath:
  94.           path: /downloads
  95.  
Add Comment
Please, Sign In to add comment