Isn't it the "docker0" bridge ip should be used there? It defaults
to 172.17.0.1

On Wed, Mar 30, 2016 at 11:04 AM, Afkham Azeez <[email protected]> wrote:

> What if you give the host as 0.0.0.0 ?
>
> On Wed, Mar 30, 2016 at 10:57 AM, Nishadi Kirielle <[email protected]>
> wrote:
>
>> 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]
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **[email protected]* <[email protected]>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Kariyawasam
*Committer and PMC member, Apache Stratos, *
*WSO2 Inc.; http://wso2.com <http://wso2.com>*
*Mobile: 0772269575*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to