Preparing for magic

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2025-03-05 11:05:40 +00:00
parent 8893c46d72
commit 187db433de

View file

@ -14,9 +14,29 @@ spec:
labels: labels:
app: qbittorrent app: qbittorrent
spec: 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: containers:
- image: qbittorrentofficial/qbittorrent-nox:latest - image: qbittorrentofficial/qbittorrent-nox:latest
name: qbittorrent name: qbittorrent
command:
- /bin/sh
- -c
- while sleep 1; do echo '.'; done
volumeMounts: volumeMounts:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-t4rzn name: kube-api-access-t4rzn
@ -51,14 +71,14 @@ spec:
key: TS_AUTHKEY key: TS_AUTHKEY
name: tailscale-auth name: tailscale-auth
optional: true optional: true
livenessProbe: # livenessProbe:
exec: # exec:
command: # command:
- ping # - ping
- -c1 # - -c1
- 100.100.100.100 # - 100.100.100.100
initialDelaySeconds: 120 # initialDelaySeconds: 120
periodSeconds: 5 # periodSeconds: 5
image: ghcr.io/tailscale/tailscale:latest image: ghcr.io/tailscale/tailscale:latest
name: ts-sidecar name: ts-sidecar
securityContext: securityContext:
@ -68,6 +88,8 @@ spec:
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-t4rzn name: kube-api-access-t4rzn
readOnly: true readOnly: true
- mountPath: /persist
name: persist
preemptionPolicy: PreemptLowerPriority preemptionPolicy: PreemptLowerPriority
priority: 0 priority: 0
serviceAccountName: tailscale serviceAccountName: tailscale
@ -87,6 +109,8 @@ spec:
- name: config - name: config
persistentVolumeClaim: persistentVolumeClaim:
claimName: q-config claimName: q-config
- name: persist
emptyDir: {}
- name: kube-api-access-t4rzn - name: kube-api-access-t4rzn
projected: projected:
sources: sources: