Shitty IaC
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ansible: torrents for everybody else

Gee Sawra dbc3a97c 5c842885

+125
+6
ansible/2_services.yml
··· 35 35 state: present 36 36 src: k8s/transmission.yml 37 37 38 + - name: Deploy Transmission for other's torrents 39 + tags: transmission-others,transmission 40 + kubernetes.core.k8s: 41 + state: present 42 + src: k8s/transmission_others.yml 43 + 38 44 - name: Deploy postgres operator 39 45 tags: postgres 40 46 kubernetes.core.k8s:
+119
ansible/k8s/transmission_others.yml
··· 1 + --- 2 + kind: Deployment 3 + apiVersion: apps/v1 4 + metadata: 5 + name: transmission-others-deployment 6 + namespace: torrents 7 + labels: 8 + app: transmission-others 9 + spec: 10 + replicas: 1 11 + selector: 12 + matchLabels: 13 + app: transmission-others 14 + template: 15 + metadata: 16 + name: transmission-pod 17 + namespace: torrents 18 + labels: 19 + app: transmission-others 20 + spec: 21 + containers: 22 + - name: transmission-container 23 + image: ghcr.io/linuxserver/transmission 24 + ports: 25 + - containerPort: 9091 26 + protocol: TCP 27 + - containerPort: 51413 28 + protocol: TCP 29 + - containerPort: 51413 30 + protocol: UDP 31 + 32 + volumeMounts: 33 + - mountPath: /downloads 34 + name: files 35 + - mountPath: /config 36 + name: config 37 + 38 + env: 39 + - name: PUID 40 + value: "1000" 41 + - name: PGID 42 + value: "1000" 43 + - name: TZ 44 + value: "Europe/Rome" 45 + 46 + volumes: 47 + - name: config 48 + nfs: 49 + server: 192.168.1.155 50 + path: /mnt/torrents/data/others/config 51 + mountOptions: 52 + - nfsvers=3 53 + 54 + - name: files 55 + nfs: 56 + server: 192.168.1.155 57 + path: /mnt/torrents/data/others/files 58 + mountOptions: 59 + - nfsvers=3 60 + --- 61 + kind: Service 62 + apiVersion: v1 63 + metadata: 64 + name: transmission-others-service 65 + namespace: torrents 66 + spec: 67 + type: NodePort 68 + selector: 69 + app: transmission-others 70 + ports: 71 + - protocol: TCP 72 + name: web-interface 73 + port: 9091 74 + targetPort: 9091 75 + - protocol: TCP 76 + name: torrent-tcp 77 + port: 51413 78 + targetPort: 51413 79 + - protocol: UDP 80 + name: torrents-udp 81 + port: 51413 82 + targetPort: 51413 83 + --- 84 + apiVersion: traefik.io/v1alpha1 85 + kind: IngressRoute 86 + metadata: 87 + name: transmission-others-route 88 + namespace: torrents 89 + spec: 90 + entryPoints: 91 + - websecure 92 + routes: 93 + - kind: Rule 94 + match: Host(`transmission-others.clorofilla.casa`) 95 + priority: 10 96 + services: 97 + - name: transmission-others-service 98 + port: 9091 99 + tls: 100 + certResolver: default 101 + --- 102 + kind: Service 103 + apiVersion: v1 104 + metadata: 105 + name: transmission-peer-lb-others 106 + namespace: torrents 107 + spec: 108 + type: LoadBalancer 109 + selector: 110 + app: transmission-others 111 + ports: 112 + - protocol: TCP 113 + name: peer-tcp 114 + port: 51413 115 + targetPort: 51413 116 + - protocol: UDP 117 + name: peer-udp 118 + port: 51413 119 + targetPort: 51413