apiVersion: batch/v1 kind: CronJob metadata: name: kubernaut-cronjob spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox:1.37 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - X=$(( RANDOM % 2)); [[ $X -eq 0 ]] && SAY="meow" || SAY="purr"; echo "=^.^= <(${SAY})"; exit $X; restartPolicy: OnFailure