---
apiVersion: batch/v1
kind: Job
metadata:
  generateName: nfs-application-pod-failure-
  namespace: litmus
spec:
  template:
    metadata:
      labels:
        name: nfs-app-pod-failure
    spec:
      serviceAccountName: litmus
      restartPolicy: Never
      containers:
      - name: ansibletest
        image: openebs/ansible-runner:ci
        env:
          - name: ANSIBLE_STDOUT_CALLBACK
            #value: log_plays
            #value: actionable
            value: default

          - name: NFS_NAMESPACE
            value: ""

          - name: NFS_LABEL
            value: ""

          - name: APP_LABEL
            value: ""

          - name: APP_NAMESPACE
            value: ""

          # Specify the container runtime used , to pick the relevant chaos util
          - name: CONTAINER_RUNTIME
            value: ""

          - name: LIVENESS_APP_LABEL
            value: ""

          - name: LIVENESS_APP_NAMESPACE
            value: ""

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