I'm currently trying to create a CronJob in Openshift that starts every day at 3.00 am. Creating the CronJob using a schedule with step values (e. g. "0 */1 * * *") works fine and the Jobs start correctly, however when creating the CronJob with a specific schedule such as "0 3 * * *" or "0 3 */1 * *", the CronJob won't start at all.
I checked the time stamps in the monitoring section and the time stamps are displayed in the same time zone as used for the CronJob schedule.
Any ideas on how to solve/work around this issue or if it is possible that CronJob uses a different time zone setting than displayed in the logs?
I am using openshift v3.9.102 and kubernetes v1.9.1+a0ce1bc657.
My CronJob configuration:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: update-prices
spec:
schedule: "0 3 * * *"
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
metadata:
labels:
parent: "cronjobpcurl"
spec:
containers:
- name: curljob
image: curlimages/curl:latest
command: ["curl", "--insecure", "https://www.example.com"]
imagePullPolicy: Always
restartPolicy: Never