mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 18:33:09 +00:00
21 lines
474 B
YAML
21 lines
474 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
namespace: ${ZED_KUBE_NAMESPACE}
|
|
name: ${ZED_MIGRATE_JOB_NAME}
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: migrator
|
|
imagePullPolicy: Always
|
|
image: ${ZED_IMAGE_ID}
|
|
args:
|
|
- migrate
|
|
env:
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: database
|
|
key: url
|