I'm trying to run a simple cron job
This is my yaml file
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: node-timer-analytics-parser-cronjob
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: node-timer-analytics-parser-cronjob
image: round0.azurecr.io/node-timer-analytics-parser:latest
args:
- /bin/sh
- -c
- date; npm start
restartPolicy: OnFailure
imagePullSecrets:
- name: regsecret
$ kubectl get cronjob
NAME KIND
node-timer-analytics-parser-controller CronJob.v1beta1.batch
NAME KIND
node-timer-analytics-parser-controller CronJob.v1beta1.batch
What's the issue here?