feat: add ArgoCD Application and backend k8s manifests

This commit is contained in:
2026-09-23 15:52:05 +02:00
parent c08fddbdba
commit 6ae6009821
9 changed files with 191 additions and 91 deletions
+23
View File
@@ -0,0 +1,23 @@
apiVersion: batch/v1
kind: Job
metadata:
name: nextgen-be-migrate
namespace: nextgen-be
annotations:
# ArgoCD: run this before the Deployment is synced, on every sync where it changed
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: BeforeHookCreation
spec:
backoffLimit: 2
template:
spec:
restartPolicy: Never
imagePullSecrets:
- name: registry-credentials
containers:
- name: migrate
image: registry.example.com/nextgen/nextgen_be:latest # TODO: keep in sync with 03-deployment.yaml
command: ["alembic", "upgrade", "head"]
envFrom:
- secretRef:
name: nextgen-be-db