Firstly, many thanks James to confirm my last post about the GOGS issue for the CDelivery.
In order to go further with my POC, I decided to setup an external GOGS service to use my existing GOGS server that we are using.
I followed the instruction from this link
integrating_external_services and
services but no much luck ! (I couldn't figure out how to inspect the log files or if there are any ? nothing from the openshift log ! )
So, I tried this using the camel CDI simple to query my external KIE-Server.
I makes sure that the following code works perfectly fine on my server in the camel CDI sample :
Then I changed the IP and port as service as :
@Uri("http://{{service:kie-server}}/services/rest/server/containers/myCheese)
Finally, I set up the external service as :
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
kie-server 172.30.152.243 <none> 9080/TCP <none> 4m
as per the document, if a service doesn't have a 'Selector', then the EndPointController won't create a new one. So, I have to manually create the EndPoint for my external Service.
I am expecting the URI should become :
at runtime, but the service proxy should translate this to use the EndPoint value ?
However, this wasn't the case and I am getting HTTP 404 as following :
</batch-execution>]. Caused by: [org.apache.camel.http.common.HttpOperationFailedException - HTTP operation failed invok
vices/rest/server/containers/myCheese with statusCode: 404
Seems like no translation ? or the translation should have been happened before that ?
Inside the camelCDI pod, I can see the server's env variables :
KIE_SERVER_PORT_9080_TCP_ADDR=172.30.152.243
KIE_SERVER_PORT_9080_TCP_PORT=9080
KIE_SERVER_PORT_9080_TCP_PROTO=tcp
KIE_SERVER_SERVICE_HOST=172.30.152.243
KIE_SERVER_SERVICE_PORT=9080
Nothing about the EndPoints. Any ideas how this works ?
Many Thanks for help suggestions.
Regards
Alex