Issues in using kubernetes API

In my kubernetes cluster, I have Pod A & B ,i am using POD B whose sole purpose is to dedicatedly restart the POD A using the Kubernetes API call made in the POD B using the LB service of the POD B ,Can anyone please help me how it can be achieved (The reason i am doing is i want to restart the kubernetes deployment from AWS Lambda by hitting pod B’s LB service which should restart the deployment of POD A)

Hello yashmehra,

As there is no restart state for a pod.
You can use docker restart {container_id} to restart a container in the Docker process, but there is no restart command in Kubernetes. In other words, there is no kubectl restart {podname}.

Thanks,
KodeKloud Support