apiVersion: batch/v1 kind: Job metadata: name: hydra-migrate spec: template: spec: restartPolicy: OnFailure containers: - env: [] name: hydra-migrate image: reg.cadoles.com/proxy_cache/oryd/hydra:v2.0.3 imagePullPolicy: IfNotPresent args: ["migrate", "sql", "--yes", "$(DSN)"]