title: Execute shell script file using kubernetes as a cron job
body: <p>When executing yaml file as a cronjob i am getting the following error:</p>
  
  <blockquote>
    <p>container_linux.go:247: starting container process caused "exec:
    \"/home/ubuntu/exam.sh\": stat /home/ubuntu/exam.sh: no such file or
    directory"</p>
  </blockquote>
  
  <pre><code>job2.yaml file apiVersion: batch/v1beta1 kind: CronJob metadata:   name: ghost   labels:
      role: blog spec:   schedule: "*/1 * * * *"   jobTemplate:
      spec:
        template:
          spec:
            containers:
            - name: ghost
              image: ghost:0.11-alpine
              command: ["/home/ubuntu/exam.sh"]
            restartPolicy: OnFailure
  </code></pre>
  
  <p>Can any one help me out of this.</p>