Hello,
the task was to create a cronjob to print text every beginning of the hour. Every subtask of cronjob creation was correct but “command executed correctly”.
This was the solution:
spec:
containers:
- name: learning-every-hour
image: alpine
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -c
- echo I will pass CKAD certification
restartPolicy: OnFailure
This was my approach, which always worked in other mock exams:
spec:
containers:
- args:
- -c
- echo I will pass CKAD certification
command:
- /bin/sh
image: alpine
imagePullPolicy: Always
name: learning-every-hour
The heck? Am I missing something? The image pull policy was a byproduct by using imperative commands but since the validator explicitly marked the command as false, i doubt this is the reason.