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