<p>I have a service using Azure Kubernetes cluster and AKS load balancer.
I want to forward some HTTP(client) requests to all instances.
is there any way to configure this behavior using AKS or Kubernetes in general?</p>
<p>Say I have XYZ API running two replicas/instances.</p>
<ul>
<li>XYZ-1 pod instance</li>
<li>XYZ-2 pod instance</li>
</ul>
<p>I have some rest API requests to the app domain.com/testendpoint</p>
<p>Currently, using AKS load balancer it sends the requests in a round-robin fashion to XYZ-1 and XYZ-2. I am looking to see if it is possible to forward a request to both instances (XYZ-1 and XYZ-2) when the request endpoint is <code>testendpoint</code> and all other API requests use the same round-robin order.</p>
<p>The use case to refresh a service in-memory data via a rest call once a day or twice and the rest call will be triggered by another service when needed. so want to make sure all pod instances update/refresh in-memory data by an HTTP request.</p>

<blockquote>
<p>if it is possible to forward a request to both instances (XYZ-1 and XYZ-2) when the request endpoint is testendpoint</p>
</blockquote>
<p>This is not a feature in the HTTP protocol, so you need a purpose built service to handle this.</p>
<blockquote>
<p>The use case to refresh a service in-memory data via a rest call once a day or twice and the rest call will be triggered by another service when needed. so want to make sure all pod instances update/refresh in-memory data by an HTTP request.</p>
</blockquote>
<p>I suggest that you create a new utility service, &quot;update-service&quot; - that you send the call once a day to. This service then makes a request to every instance of XYZ, like <code>XYZ-1</code> and <code>XYZ-2</code>.</p>
