From 1602202137d6571da5ba17ff51fe2b66b48dc08b Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Thu, 15 Aug 2024 21:01:44 +0200 Subject: [PATCH] feat(vuetorrent): use git-sync to fetch vuetorrent theme --- k8s/apps/media/arr/torrent/deployment.yaml | 42 ++++++++++++++-------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/k8s/apps/media/arr/torrent/deployment.yaml b/k8s/apps/media/arr/torrent/deployment.yaml index c06bf78..0beca04 100644 --- a/k8s/apps/media/arr/torrent/deployment.yaml +++ b/k8s/apps/media/arr/torrent/deployment.yaml @@ -28,22 +28,34 @@ spec: fsGroupChangePolicy: Always seccompProfile: type: RuntimeDefault - initContainers: - - name: vuetorrent - image: busybox + containers: + - name: git-sync-vuetorrent + image: registry.k8s.io/git-sync/git-sync:v4.2.3 # renovate: docker=registry.k8s.io/git-sync/git-sync securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: [ "ALL" ] - command: - - sh - - -c - - wget -O /themes/vuetorrent.zip https://github.com/VueTorrent/VueTorrent/releases/download/v2.10.2/vuetorrent.zip && unzip /themes/vuetorrent.zip -d /themes/ && rm /themes/vuetorrent.zip + args: + - --repo=https://github.com/VueTorrent/VueTorrent + - --root=/tmp/git-sync + - --ref=latest-release + - --period=12h + - --link=/themes/vuetorrent + - --max-failures=10 + - -v=2 + resources: + requests: + cpu: 10m + memory: 16Mi + limits: + cpu: 2000m + memory: 256Mi volumeMounts: - name: themes mountPath: /themes - containers: + - name: tmp + mountPath: /tmp - name: torrent image: ghcr.io/onedr0p/qbittorrent:4.6.5 # renovate: docker=ghcr.io/onedr0p/qbittorrent securityContext: @@ -64,6 +76,13 @@ spec: - configMapRef: name: common-env optional: true + resources: + requests: + cpu: 100m + memory: 1.5Gi + limits: + cpu: 2000m + memory: 8Gi volumeMounts: - name: torrent-config mountPath: /config @@ -73,13 +92,6 @@ spec: mountPath: /themes - name: data mountPath: /app/data - resources: - requests: - cpu: 100m - memory: 1.5Gi - limits: - cpu: 2000m - memory: 8Gi volumes: - name: torrent-config persistentVolumeClaim: