<p>I have a simple web app deployed on kubernetes.</p>
<p>I have two Pods and Service for them.
Requests should be balanced among two pods. How I can verify this?</p>
<p>Maybe there are some tools or commands?
When I hit (make request) my application, I want to see something like this in console:</p>
<pre><code>request on pod1
request on pod2
request on pod2
</code></pre>

Optio
<p>One way to do this would be add the podname or podip or hostname or some other identifier to an HTTP header before sending back a response from the pod to the client . Then in the client side you can inspect the header to check which pod responded for that particular request.</p>
<p>For example you could define env in your pod as below</p>
<pre><code>env:
  - name: MY_POD_NAME
    valueFrom:
      fieldRef:
        fieldPath: metadata.name
  - name: MY_POD_IP
    valueFrom:
      fieldRef:
        fieldPath: status.podIP
</code></pre>
<p>Then you could read the environment variables <code>MY_POD_NAME</code> and <code>MY_POD_IP</code>, add them into an http header, print them in logs.</p>
