---
apiVersion: batch/v1
kind: Job
metadata:
  name: richie-job
  labels:
    app.kubernetes.io/component: job
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: richie
          image: {{ RICHIE_DOCKER_IMAGE }}
          volumeMounts:
            - mountPath: /app/richie/sandbox/tutor.py
              name: settings
              subPath: tutor.py
          envFrom:
            - secretRef:
                name: richie-env
      volumes:
        - name: settings
          configMap:
            name: richie-settings
