cancel
Showing results for 
Search instead for 
Did you mean: 
sakshi-80
Mission Specialist
Mission Specialist
  • 504 Views

Query related to writing cronjob in D0380

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"

 

 

0 Kudos
1 Reply
carlos_arias
Moderator
Moderator
  • 453 Views

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!

RHCA - Level III
Free software for free people
0 Kudos
Join the discussion
You must log in to join this conversation.