Ckad mock exam 3, ex1

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.

Are you sure this is Ultimate Mock Exam for CKAD #2 Q1? I’m not finding this problem in that exam (nor in the regular mock exam #2). Could you please check that?

apologies Rob, this should be Mock Exam 3.

The grader might expect single quotes. Here’s what got generated by me:

student-node ~ ➜  k -n ckad-job create cj simple-python-job --image python --schedule "*/30 * * * *" --dry-run=client -o yaml  -- /bin/sh -c "ps -eaf"
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: '*/30 * * * *'
status: {}