Countdown job in Kubernetes

Ticker

6/recent/ticker-posts

Countdown job in Kubernetes

 Question : Create a job countdown-devops.

The spec template should be named as countdown-devops (under metadata), and the container should be named as container-countdown-devops

Use image debian with latest tag only and remember to mention tag i.e debian:latest, and restart policy should be Never.

Use command for i in ten nine eight seven six five four three two one ; do echo $i ; done



Please Note :-  Perform the below commands based on your question  server,  user name & other details might differ . So please read task carefully before executing. All the Best 👍

Solution:  

1. At first  kubectl  utility configure and working from jump server, run below commands

    kubectl get services

    kubectl get pods


2.  Create yaml  file with all the parameters , you can copy form gitlab

    https://gitlab.com/nb-tech-support/devops.git

    Refer Below Video for more clarity )


4.  Run below command to create pod

    kubectl create -f /tmp/devops.yaml


5.  Wait for  pods to get running status

        kubectl get pods


6.  Click on Finish & Confirm to complete the task successful

Happy Learning!!!!


Apart from this if you need more clarity,  I have made a  tutorial video on this , 

please go through and share your comments. Like and share the knowledge

    

Post a Comment

0 Comments

Latest Posts

KodeKloud Kubernetes Security CKS  Lab Challenge 4 |  Audit-policy | Install & configure falco utility | Inspect the API server audit logs and identify the user