Started by Jake WiliamsSep 28, 2021

Open
How do I run a CronJob inside a container with a predefined Image?

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I have a Kubernetes Deployment, in whose Pods I need a command run periodically. The Kubernetes CronJob object creates a new Pod. I would prefer to specify a cronjob, that runs inside the container of the Pod. Is there any way, I can specify this in the deployment yaml?

I have no access to the Dockerfile, but am using pre-built Images.

0 Replies

You must be Logged in to reply
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan