Cluster information:
Kubernetes version: 1.22
Cloud being used: AWS
Installation method: Using helm chart
Host OS: Amazon Linux
Hello, I am trying to create a Cron job using K8s in which it will schedule a job every 24 hours, but it should start doing this periodic syncs every 24 hours starting from the time when Cronjob is created. Can anyone help me in what CRON expression should I provide to achieve this.
Current Job Spec -
apiVersion: batch/v1
kind: CronJob
metadata:
name: test-cron
spec:
schedule: "* */23 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: test-container
image: IMAGE_NAME
imagePullSecrets:
- name: regcred
restartPolicy: onFailure