apiVersion: batch/v1
kind: Job
metadata:
  name: poker-create-pockets
spec:
  template:
    spec:
      containers:
      - name: poker-create-pockets
        image: carlschader/poker-create-pockets
        env:
        - name: MONGODB_URI
          value: mongodb://mongo.default.svc.cluster.local:27017
        - name: DB_NAME
          value: poker
        - name: POCKETS_COLLECTION_NAME
          value: pockets
      restartPolicy: Never
  backoffLimit: 1
