Hi all,
I am trying to create a docker file for msf4j to be used in appcloud
exposing https port. The current approach taken to expose https ports
follows up the guidelines given in documentation to expose https in msf4j.
[1]

This approach uses a YAML configuration file to define the HTTPS
transport. The problem with the taken approach is due to the configuration
in the netty-transport.yml. [2] In that yaml configuration, the host
provided is localhost and thus the exposed ports are only accessible within
the docker container using localhost. These ports are not accessible even
within the other containers in the cluster with pods IP.
Since the pod IP is dynamic within the kubernetes cluster, it is not
feasible to update the host with pod IP as well.

Any suggestions as to how to expose the https ports will be highly
appreciated.

As additional information, when I'm trying to expose only the http port
without using a configuration file, it exposes the http port.

Thanks
Regards
Nishadi

[1].
https://docs.wso2.com/display/MSF4J100/Invoking+Your+Microservice+via+HTTPS
[2].
https://github.com/wso2/app-cloud/blob/master/modules/resources/dockerfiles/msf4j/base/1.0.0/netty-transports.yaml

-- 
*Nishadi Kirielle*
*Software Engineering Intern*
Mobile : +94 (0) 714722148
Blog : http://nishadikirielle.blogspot.com/
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to