apiVersion: batch/v1
kind: Job
metadata:
  name: db-seed
spec:
  template:
    spec:
      containers:
      - name: db-seed
        envFrom:
          - secretRef:
              name: data-service
        image: gwdowner/dataservice:latest
        command: ["npm",  "run", "db:init"]
      restartPolicy: OnFailure
  backoffLimit: 4
