Troubleshoot Issue With Pods

Ticker

6/recent/ticker-posts

Troubleshoot Issue With Pods

 Question : There is a pod named webserver, the container under it named as httpd-container and it is using image httpd:latest

There is a sidecar container as well named sidecar-container which is using ubuntu:latest image.

Look into the issue and fix it, make sure pod is in running state before clicking the Finish button.

Note: The kubectl utility on jump_host has been configured to work with the kubernetes cluster.


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 pods


2. To identify the error run below command 

    kubectl describe pod webserver



3.  To resolve the images issue edit the pod and do the changes

     Refer Below Video for more clarity )

    kubectl edit pod webserver    


4.  Wait for  pods to get running status

        kubectl get pods


5.  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