<p>I have deployed a spring boot application on a pod(pod1) on a node(node1). I have also deployed JMeter on another pod(pod2) on a different node(node2). I am trying to perform automated load testing from pod2. To perform load testing, I require to restart the pod1 for each test cases. How do I restart pod1 from pod2?</p>

anushiya-thevapalan
<p>To restart or delete a pod from another pod you have to access the APIServer.
There are many ways to do this check this <a href="https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod" rel="nofollow noreferrer">link</a>.   </p>

<p>You also have to authorize the pod user to do this, build a Role and a Rolebinding entity.</p>
