title: How can we route a request to every pod under a kubernetes service on Openshift?
body: <p>We are building a Jboss BRMS application with <em>two microservices in spring-boot</em>, one for <strong>rule generation (SRV1)</strong> and one for <strong>rule execution (SRV2)</strong>.
  The idea is to <em><strong>generate the rules</strong></em> using the generation microservice (SRV1) and <em><strong>persist them in the database with versioning</strong></em>. The next part of the process is having the execution microservice <em><strong>load these persisted rules into each pods memory</strong></em> by querying the information from the shared database.</p>
  <p>There are two following scenarios when this should happen :</p>
  <blockquote>
  <ul>
  <li><p>When the rule execution service pod/pods <strong>starts up</strong>, it queries the db for the lastest version and every pod running the execution application loads those rules from the shared db.</p>
  </li>
  <li><p>The second senario is we <strong>manually</strong> want to trigger the loading of a <strong>specific version</strong> of rules on every pod running the execution application preferably via a rest call.</p>
  </li>
  </ul>
  </blockquote>
  <p><em><strong>Which is where the problem lies!</strong></em></p>
  <p>Whenever we try and issue a rest request to the api, since it is load balanced under a kubernetes service, the request hits only one of the pods and the rest of them do not load the specific rules.</p>
  <p>Is there a programatic or design change that may help us achieve that or is there any other way we construct our application to achieve a capability to load a certain version of rules on all pods serving the execution microservice.</p>