apiVersion: batch/v1
kind: Job
metadata:
  name: peoplefinder-migrations
  namespace: peoplefinder
spec:
  template:
    spec:
      containers:
        - name: peoplefinder
          image: mastertos/peoplefinder:2
          command: ['python', 'manage.py', 'migrate']
        # command: ['sh', 'run.sh']
          envFrom:
            - secretRef:
                name: peoplefinder-credentials
            - configMapRef:
                name: peoplefinder-configmap
      restartPolicy: Never
  backoffLimit: 5
