arijitmazumdar opened a new issue #1806: URL: https://github.com/apache/camel-k/issues/1806
Hi I have written a simple camel-k component which exposes a rest endpoint, which responds back. ``` import org.apache.camel.builder.RouteBuilder; public class BasicRest extends RouteBuilder { @Override public void configure() throws Exception { from("rest:get:hello/{name}") .transform().simple("Bye World, ${header.name} from --> ${hostname}!!") .log("Got 1 hello"); } } ``` I have deployed the component using `kamel run BasicRest.java --dev` I have scaled the integration using `kubectl scale it basic-rest --replicas=2` This created 2 instances ``` $ kubectl get it NAME PHASE KIT REPLICAS basic-rest Running kit-buekus3365fim0fprqeg 2 $ kubectl get po NAME READY STATUS RESTARTS AGE basic-rest-65cb866cd7-g9lpv 1/1 Running 0 12m basic-rest-65cb866cd7-tvl77 1/1 Running 0 12m camel-k-operator-8bd669468-sbpv2 1/1 Running 3 7d2h ``` I have port-forwarded the service using `kubectl port-forward svc/basic-rest 8080:80` But when I am doing a curl to the endpoint I can only see same response. ``` $curl localhost:8080/hello/arijit Bye World, arijit from --> basic-rest-65cb866cd7-g9lpv!! $ curl localhost:8080/hello/arijit Bye World, arijit from --> basic-rest-65cb866cd7-g9lpv!! $ curl localhost:8080/hello/arijit Bye World, arijit from --> basic-rest-65cb866cd7-g9lpv!! ``` Ideally hostname should be altered for some requests. Am I making any mistakes ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org