---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: nuodb-app-chaos-
  namespace: litmus
spec:
  template:
    metadata:
      labels:
        name: nuodb-app-chaos
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            value: default

          - name: APP_NAMESPACE
            value: nuodbns 

          - name: APP_LABEL
            value: 'nodetype=sm'

          - name: DEPLOY_TYPE
            value: statefulset

        command: ["/bin/bash"]
        args: ["-c", "ansible-playbook ./nuodb/chaos/app_pod_failure/test.yml -i /etc/ansible/hosts -vv; exit 0"]
