Files
homelab/k8s/apps/firefly-iii/storage-prep.yaml
T
Ultradesu 31714fe357
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 6s
Check with kubeconform / lint (push) Successful in 5s
Auto-update README / Generate README and Create MR (push) Successful in 5s
Added firefly-iii
2026-07-30 12:22:42 +01:00

53 lines
1.4 KiB
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: firefly-storage-prep
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation,HookSucceeded
spec:
backoffLimit: 3
template:
metadata:
labels:
app.kubernetes.io/name: firefly-storage-prep
spec:
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/hostname: ai.tail2fe2d.ts.net
tolerations:
- key: workload
operator: Equal
value: ai
effect: NoSchedule
containers:
- name: prepare
image: busybox:1.37.0
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
- |
mkdir -p /host/k8s/firefly-iii/postgres
chown 26:26 /host/k8s/firefly-iii/postgres
chmod 0700 /host/k8s/firefly-iii/postgres
securityContext:
runAsUser: 0
runAsGroup: 0
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
volumeMounts:
- name: host-root
mountPath: /host/k8s/firefly-iii
volumes:
- name: host-root
hostPath:
path: /k8s/firefly-iii
type: DirectoryOrCreate