diff --git a/apps-kustomized/torrents/deploy.yaml b/apps-kustomized/torrents/deploy.yaml index 89c5483..d1c57e0 100644 --- a/apps-kustomized/torrents/deploy.yaml +++ b/apps-kustomized/torrents/deploy.yaml @@ -14,9 +14,29 @@ spec: labels: app: qbittorrent spec: + initContainers: + - image: ghcr.io/tailscale/tailscale:latest + command: + - /bin/sh + - -c + - mkdir -p /persist/var/lib/tailscale + name: ts-sidecar + securityContext: + runAsGroup: 1000 + runAsUser: 1000 + volumeMounts: + - mountPath: /var/run/secrets/kubernetes.io/serviceaccount + name: kube-api-access-t4rzn + readOnly: true + - mountPath: /persist + name: persist containers: - image: qbittorrentofficial/qbittorrent-nox:latest name: qbittorrent + command: + - /bin/sh + - -c + - while sleep 1; do echo '.'; done volumeMounts: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-t4rzn @@ -51,14 +71,14 @@ spec: key: TS_AUTHKEY name: tailscale-auth optional: true - livenessProbe: - exec: - command: - - ping - - -c1 - - 100.100.100.100 - initialDelaySeconds: 120 - periodSeconds: 5 +# livenessProbe: +# exec: +# command: +# - ping +# - -c1 +# - 100.100.100.100 +# initialDelaySeconds: 120 +# periodSeconds: 5 image: ghcr.io/tailscale/tailscale:latest name: ts-sidecar securityContext: @@ -68,6 +88,8 @@ spec: - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-t4rzn readOnly: true + - mountPath: /persist + name: persist preemptionPolicy: PreemptLowerPriority priority: 0 serviceAccountName: tailscale @@ -87,6 +109,8 @@ spec: - name: config persistentVolumeClaim: claimName: q-config + - name: persist + emptyDir: {} - name: kube-api-access-t4rzn projected: sources: