Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 812 Bytes

File metadata and controls

23 lines (13 loc) · 812 Bytes

Troubleshoot Issue With Pods

Problem

One of the junior DevOps team members was working on to deploy a stack on Kubernetes cluster. Somehow the pod is not coming up and its failing with some errors. We need to fix this as soon as possible. Please look into it.

There is a pod named webserver and the container under it is named as httpd-container. 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 and you are able to access the app.

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

Solution

kubectl set image pod/webserver httpd-container=httpd:latest