apiVersion: batch/v1
kind: Job
metadata:
  name: job2 
  namespace: migration
spec:
  template:
    spec:
      containers:
      - name: ts-to-dynamo-migration
        image: ilprovo/ts-to-dynamo-migration:v1.0.10
        env:
          - name: DYNAMO_TABLENAME
            value: "DynamoTableName"
          - name: DYNAMO_REGION
            value: "us-west-2"
          - name: DYNAMO_MIGRATIONSTATUSTABLENAME
            value: "DynamoMigrationStatusTableName"
          - name: TABLESTORAGE_ACCOUNTNAME
            value: "TSAccountName"
          - name: TABLESTORAGE_ACCOUNTKEY
            value: "TSAccountKey"
          - name: TABLESTORAGE_TABLENAME
            value: "TSTableName"
          - name: TABLESTORAGE_COLUMNNAMES
            value: "Col1,Col2,Col3"
          - name: AWS_ACCESS_KEY_ID 
            value: "AWSAccessKeyId"
          - name: AWS_SECRET_ACCESS_KEY 
            value: "AWSSecretAccessKey"
          - name: NUMWORKERS 
            value: "400"
          - name: BUFFERSIZE 
            value: "800"
          - name: RANGES
            value: "8,a,c,e,g"
          - name: RANGEPRECISION
            value: "4"
      restartPolicy: Never
  backoffLimit: 10