dcbot/k8s/base/jobs.yml

28 lines
656 B
YAML
Raw Normal View History

apiVersion: batch/v1
kind: Job
metadata:
name: twhelp-dcbot-migrations-job
spec:
template:
spec:
containers:
- name: twhelp-dcbot-migrations
image: dcbot-migrations
args: ["up"]
env:
- name: GOOSE_DRIVER
value: "postgres"
- name: GOOSE_DBSTRING
valueFrom:
secretKeyRef:
name: twhelp-dcbot-secret
key: db-dsn
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 150m
memory: 128Mi
restartPolicy: Never