zed/crates/collab/k8s/migrate.template.yml

22 lines
474 B
YAML
Raw Normal View History

apiVersion: batch/v1
kind: Job
metadata:
namespace: ${ZED_KUBE_NAMESPACE}
name: ${ZED_MIGRATE_JOB_NAME}
spec:
template:
spec:
restartPolicy: Never
containers:
- name: migrator
2022-10-21 22:50:14 +00:00
imagePullPolicy: Always
image: ${ZED_IMAGE_ID}
2022-10-21 20:15:34 +00:00
args:
- migrate
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: database
key: url