Our course you can check :- Udemy course
Ques:-
DevOps team is setting up recurring tasks on different schedules. Currently, they're developing scripts to be executed periodically. To kickstart the process, they're creating cron jobs in the Kubernetes cluster with placeholder commands. Follow the instructions below:
Create a cronjob named devops.
Set Its schedule to something like */6 * * * *. You can set any schedule for now.
Name the container cron-devops.
Utilize the nginx image with latest tag (specify as nginx:latest).
Execute the dummy command echo Welcome to Learning!.
Ensure the restart policy is OnFailure.
Ans:-
This will:
- Create a CronJob named
devops - Run every 6 minutes (
*/6 * * * *) - Use the
nginx:latestimage - Execute the dummy command
echo Welcome to Learning! - Restart the job only on failure
No comments:
Post a Comment