Hi Lasantha,

How do we handle multiple versions in K8s? There could be API changes in K8
major versions. I think we need to consider the platform version as well
when deploying the products.

Thank you!

On Tue, Dec 6, 2016 at 12:03 PM, Imesh Gunaratne <[email protected]> wrote:

> Correction: s/identified generated/identifier generated/g
>
> Thanks
>
> On Tue, Dec 6, 2016 at 12:02 PM, Imesh Gunaratne <[email protected]> wrote:
>
>> Hi Lasantha,
>>
>> Great work! Please find few comments inline:
>>
>> On Mon, Dec 5, 2016 at 5:31 PM, Lasantha Samarakoon <[email protected]>
>> wrote:
>>>
>>>
>>> Following endpoints are available in this API (Please see the attached
>>> Swagger definition for detailed description).
>>>
>>> *POST /deployments *
>>>     - Payload: Product model
>>>
>>> *DELETE /deployments*
>>>     - Payload: Product model
>>>
>>> Product model:
>>>     {
>>>         "product":"esb",
>>>         "version":"4.9.0",
>>>         "pattern":1,
>>>         "platform":"kubernetes"
>>>     }
>>>
>>
>> ​I think we might need to use the same term given for the API resource
>> for the object model. In this scenario maybe we can call it deployment.
>> WDYT?​
>>
>>
>> ​We would also need to expose two API resources for queriing deployments:
>>
>> GET /deployments - Returns all deployments
>> GET /deployments/{id} - Returns the deployment that matches the {id}
>>
>> Note the {id} parameter in the second API resource. I think we would need
>> to add an id property to the deployment definition and use the identified
>> generated by the container cluster manager.
>>
>> *How the API works?*
>>>
>>> Kubernetes artifacts which is used to deploy the product in a container
>>> environment needs to be hosted in the host environment. 'KUBERNETES_HOME'
>>> environment variable contains the path to this Kubernetes artifacts
>>> directory. Directory structure of the KUBERNETES_HOME is as follows.
>>>
>>>     [KUBERNETES_HOME]/[PRODUCT_NAME]/[PRODUCT_VERSION]/[PATTERN]
>>> /[PRODUCT_PROFILE].yaml
>>>
>>
>> ​Shall we change this to read K8S artifacts from a folder inside
>> repository/deployment folder (need to check the exact folder path from C5
>> product structure)?
>>
>> Thanks​
>>
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
> W: https://medium.com/@imesh TW: @imesh
> lean. enterprise. middleware
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to