apiVersion: batch/v1
kind: Job
metadata:
  name: import-airlines
spec:
  template:
    metadata:
      name: import-airlines
    spec:
      containers:
      - name: airlines-importer
        image: importer
        command:
         - "bin/bash"
         - "-c"
         - "mongoimport --host=mongo.default.svc.cluster.local -d miniplanes -c airlines --type csv --file airlines.dat --fieldFile=airlines_schema.dat"
      restartPolicy: Never
