# Issue with routing service based on the client ID header using Kong Ingress Controller

**URL:** <https://discuss.konghq.com/t/issue-with-routing-service-based-on-the-client-id-header-using-kong-ingress-controller/13144>\
**Category:** Questions\
**Tags:** plugins, kong-gateway\
**Created:** [October 25, 2024, 9:28am UTC](https://discuss.konghq.com/t/issue-with-routing-service-based-on-the-client-id-header-using-kong-ingress-controller/13144 "2024-10-25T09:28:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay.chunduri](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vijay.chunduri](https://discuss.konghq.com/u/vijay.chunduri)\
**Post date:** [October 25, 2024, 9:28am UTC](https://discuss.konghq.com/t/issue-with-routing-service-based-on-the-client-id-header-using-kong-ingress-controller/13144/1 "2024-10-25T09:28:08Z")

</div>

We’re using the Kong Ingress Controller for routing, and I need to configure routing based on a specific header value. I’ve tried multiple approaches, but none have been successful so far. Any insights into resolving this issue would be greatly appreciated.

{  
“apiVersion”:“[networking.k8s.io/v1](http://networking.k8s.io/v1)”,  
“kind”:“Ingress”,  
“metadata”:{  
“annotations”:{  
“[konghq.com/plugins":"route-transformer-advanced](http://konghq.com/plugins%22:%22route-transformer-advanced)”,  
“[konghq.com/route-by-header":"X-clientID:631899820eff460abc7ebe0cd7da0cbb](http://konghq.com/route-by-header%22:%22X-clientID:631899820eff460abc7ebe0cd7da0cbb)”  
},  
“labels”:{  
“app”:“api-v1”,  
“type”:“mule4”  
},  
“name”:“api-v1-ingress-c88b5239”,  
“namespace”:“demo”  
},  
“spec”:{  
“ingressClassName”:“kong-route”,  
“rules”:[  
{  
“host”:“hostname”,  
“http”:{  
“paths”:[  
{  
“backend”:{  
“service”:{  
“name”:“api-v1”,  
“port”:{  
“number”:8080  
}  
}  
},  
“path”:“/api/v1/”,  
“pathType”:“ImplementationSpecific”  
},  
{  
“backend”:{  
“service”:{  
“name”:“api-v2”,  
“port”:{  
“number”:8081  
}  
}  
},  
“path”:“/api/v2|/api/v1”,  
“pathType”:“ImplementationSpecific”  
}  
]  
}  
}  
]  
}  
}
