cancel
Showing results for 
Search instead for 
Did you mean: 
jacuzi
Mission Specialist
Mission Specialist
  • 1,001 Views

Image name

Jump to solution

Lets say a task asks for you to name your Cronjob the same as the image name.

And lets say the image is located at: registry.ocp.example.com:8443/developer/ose-cli:stable

 

Now which one of these would be the name of the cronjob?

- registry.ocp4.example.com:8443/developer/ose-cli:stable

- ose-cli:stable

- ose-cli

 

I would think it would the last one "ose-cli" but I would like to be certain.

Labels (1)
1 Solution

Accepted Solutions
Chetan_Tiwary_
Community Manager
Community Manager
  • 976 Views

Hello @jacuzi !

Yes, I also think it should be "ose-cli"  as CronJob controller uses the name of the CronJob to create the Job objects that run the pods. So the CronJob controller will remove the registry address and tag from the image name to ensure that the Job name is unique.

Refer : https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/ 

 

 

View solution in original post

0 Kudos
2 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 977 Views

Hello @jacuzi !

Yes, I also think it should be "ose-cli"  as CronJob controller uses the name of the CronJob to create the Job objects that run the pods. So the CronJob controller will remove the registry address and tag from the image name to ensure that the Job name is unique.

Refer : https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/ 

 

 

0 Kudos
shashi01
Moderator
Moderator
  • 973 Views

Hello @jacuzi 

Yes, I also think if your cron job is generic and doesn't depend on a specific image version, this could be an appropriate "ose-cli"

0 Kudos
Join the discussion
You must log in to join this conversation.