title: Openshift cron job curl
body: <p>I have Java Rest application on Openshift. I need to create cron for link in my application. Is it possible?</p>
  
  <p>I tried this example </p>
  
  <pre><code>apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: pi
  spec:
    schedule: "*/1 * * * *"  
    jobTemplate:             
      spec:
        template:
          metadata:
            labels:          
              parent: "cronjobpi"
          spec:
            containers:
            - name: pi
              image: perl
              command: ["perl",  "-Mbignum=bpi", "-wle", "print bpi(2000)"]
            restartPolicy: OnFailure 
  </code></pre>
  
  <p>this job works well, but I dont know how I need to change it from perl to curl correctly.</p>
  
  <p>Thank you for advice.</p>