# Ory Kratos schema migration — runs `kratos migrate sql` against the Kratos # database before the Kratos Deployment rolls. 03-deploy.sh applies this, # waits for completion, then applies kratos.yaml. # # IMAGE: pinned to oryd/kratos v26.2.0 (CalVer current stable as of 2026-06-03) # with the linux/amd64 digest. Bump in sync with kratos.yaml's image. apiVersion: batch/v1 kind: Job metadata: name: kratos-migrate namespace: honeydue labels: app.kubernetes.io/name: kratos app.kubernetes.io/part-of: honeydue spec: backoffLimit: 0 template: metadata: labels: app.kubernetes.io/name: kratos app.kubernetes.io/part-of: honeydue spec: restartPolicy: Never automountServiceAccountToken: false securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault containers: - name: kratos-migrate image: oryd/kratos:v26.2.0@sha256:92eedc292ff8e1a918ac442c88ed0abe44610c75121700963114549908a45ac3 imagePullPolicy: IfNotPresent args: ["migrate", "sql", "-e", "--yes"] env: - name: DSN valueFrom: secretKeyRef: name: kratos-secrets key: dsn securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: ["ALL"] resources: requests: cpu: 50m memory: 64Mi limits: cpu: 500m memory: 256Mi