# Job one-shot qui applique les migrations Drizzle. # À rejouer manuellement après chaque déploiement qui contient une migration : # kubectl -n ordinarthur-os delete job ordinarthur-os-migrate --ignore-not-found # kubectl -n ordinarthur-os apply -f migrate.job.yaml # # (Peut aussi être branché dans le pipeline Gitea pour être auto-déclenché.) apiVersion: batch/v1 kind: Job metadata: name: ordinarthur-os-migrate namespace: ordinarthur-os spec: backoffLimit: 2 ttlSecondsAfterFinished: 86400 template: spec: restartPolicy: OnFailure containers: - name: migrate image: gitea.arthurbarre.fr/arthurbarre/ordinarthur-os-migrate:latest imagePullPolicy: Always envFrom: - secretRef: { name: ordinarthur-os-secrets } command: ["node", "dist/migrate.js"] resources: requests: { cpu: 50m, memory: 128Mi } limits: { cpu: 300m, memory: 256Mi }