apiVersion: v1
kind: Pod
metadata:
  name: pod-delete
  labels:
    app: pod-delete
    name: pod-delete
spec:
  restartPolicy: Never
  containers:
  - image: litmuschaos/pod-delete-helper
    imagePullPolicy: Always
    name: pod-delete  
    command: 
    - /bin/bash
    args:
    - -c
    - ./experiments/pod-delete
    env:
      ## optional: provide the value of force
      ## Default set to false
      - name: FORCE
        value: ""
      ## application namespace under pod-delete chaos
      - name: APP_NS
        value: ""
      ## application label
      - name: APP_LABEL
        value: ""        
      ## number of kill counts
      - name: KILL_COUNT
        value: ""                        
      ## optional: provide duration for pod-delete chaos
      ## defalut: 15 seconds
      - name: TOTAL_CHAOS_DURATION
        value: ""
      ## chaos namespace
      - name: CHAOS_NAMESPACE
        value: ""
      ## name of chaosengine
      - name: CHAOS_ENGINE
        value: ""
      - name: CHAOS_UID 
        value: ""
      ## optional: provide interval between pod-delete chaos
      ## defalut: 5 seconds
      - name: CHAOS_INTERVAL
        value: ""
      ## number of iterations
      - name: ITERATIONS
        value: "" 
      ## helper pod name 
      - name: POD_NAME
        valueFrom:
          fieldRef:
            fieldPath: metadata.name