I have a K8s Service named orderProcessor
with 5 pods.
Based on the orderId
HTTP Request header, I want to route the HTTP call to a specific pods.
For example:
requestId with orderId ABC
should always go to Pod A and requestId with orderId PQR
should always go to Pod B
If pod A is down and replaced with Pod C, then all request with orderId ABC
should go to Pod C.
Basically, for the same header value, request should always end up in same pod.
Is this possible at service level? How to achieve this?