Hi team,
Regarding writing a cron job in the exam, will the image mentioned below will be provided ? ` registry.ocp4.example.com:8443/openshift4/ose-cli:v4.10 `
If the image is not provided, how to find the image path in the exam?
apiVersion: batch/v1 kind: CronJob metadata: name: audit-cron namespace: automation-scripts spec: schedule: "*/2 * * * *" jobTemplate: spec: template: spec: serviceAccountName: auditor restartPolicy: Never containers: - name: audit-sh image: registry.ocp4.example.com:8443/openshift4/ose-cli:v4.10 command: ["/bin/sh", "-c"] args: - "oc get pods --all-namespaces -o jsonpath='{.items[*].spec.containers[*].image}' | sed 's/ /\\\n/g' | sort | uniq"
Hi @sakshi-80 , the exams although they are real-life exercises, always include all the necessary data to complete them, or the least of it so you can find out by your means what is not given.
Best regards!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.