Hey - I got marked off regarding the run schedule of the cronjob for this exercise. Here is my yaml:
apiVersion: batch/v1
kind: CronJob
metadata:
creationTimestamp: null
name: simple-python-job
namespace: ckad-job
spec:
jobTemplate:
metadata:
creationTimestamp: null
name: simple-python-job
spec:
template:
metadata:
creationTimestamp: null
spec:
containers:
- command: ["/bin/sh","-c","ps -eaf"]
image: python
name: simple-python-job
resources: {}
restartPolicy: OnFailure
schedule: 0/30 * * * *
status: {}
The quotations around the schedule
value are not necessary.
This is how Kubernetes itself defined the YAML because I created this from an imperative command.