apiVersion: batch/v1beta1 kind: CronJob metadata: name: hello namespace: default spec: schedule: "0 0 * * *" jobTemplate: spec: template: spec: nodeSelector: # Force scale on Karpenter nodes node-type: applications tolerations: # Force scale on Karpenter nodes - key: "applications" operator: "Exists" effect: "NoSchedule" containers: - name: hello image: busybox:1.28 imagePullPolicy: IfNotPresent command: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure