Thanks Sajith for the comprehensive reply! I was not able to find the logic
when I tried tracing from the StratosAdmin endpoint.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, Oct 9, 2014 at 3:56 PM, Sajith Kariyawasam <saj...@wso2.com> wrote:

> Hi Chamila,
>
> On Thu, Oct 9, 2014 at 12:24 PM, Chamila De Alwis <chami...@wso2.com>
> wrote:
>
>> Hi,
>>
>> When using Kubernetes + Docker setup to spawn instances how are the
>> payload parameters defined in the properties list of the subscription
>> definition JSON, passed in to the created container environment?
>>
>>
> If you have a look at CloudControllerServiceImpl startContainers method,
> MemberContext's properties contain the payload parameters. Those parameters
> eventually passed as environment variables to the container, you can find
> that logic in
> org.apache.stratos.cloud.controller.functions.MemberContextToKubernetesContainer
> apply method.
>
>
>
>> What is the container equivalent of the meta-data service in IaaS layer?
>> There is no metadata service for containers, as in VM scenario. Therefore
>> those parameters are passed as environment variables, and inside the
>> container values can be obtain as ${ENV_PARAM_NAME}
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
>
> --
> *Sajith Kariyawasam*
>
>
> *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
> <http://wso2.com>AMIE (SL)Mobile: +94772269575*
>

Reply via email to