title: Terminate pod after did not find correct file
body: <p>I tried to set up pod which use init container to create file. If the file does not exist it should terminate immediately. Here is my yaml file</p>
  
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    name: init-test-pod4
  spec:
    volumes:
    - name: my-pvc
      persistentVolumeClaim:
        claimName: mypvc
    containers:
    - name: myapp-container
      image: alpine
      command: ['sh', '-c', 'if [ **-f /workdir2/test.txt** ]; then exit 0; fi']
      volumeMounts:
      - name: mypvc
        mountPath: /workdir
    initContainers:
    - name: init-service
      image: busybox:1.28
      command: ['sh', '-c', '**mkdir /workdir; echo&gt;/workdir/test.txt**']
      volumeMounts:
      - name: my-pvc
        mountPath: /workdir 
  </code></pre>
  
  <p>After i create yaml file i see this output.</p>
  
  <pre><code>init-test-pod4   0/1     Completed   1          11s
  init-test-pod4   0/1     CrashLoopBackOff   1          22s
  init-test-pod4   0/1     Completed          2          24s
  init-test-pod4   0/1     CrashLoopBackOff   2          36s
  init-test-pod4   0/1     Completed          3          51s
  init-test-pod4   0/1     CrashLoopBackOff   3          61s
  init-test-pod4   0/1     Completed          4          99s
  init-test-pod4   0/1     CrashLoopBackOff   4          111s
  </code></pre>
  
  <p>How to change the command which terminate the pod immediately after it did not find right file ?</p>