Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-06 Thread Pirinthapan Mahendran
Hi Kasun, Currently I am working on coming up with a formula for generating the hash value. Once it completed I will share it here. Thanks, Pirinthapan. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. On Fri, Mar 4, 2016 at 2:14 PM, Kasun De Silva

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-04 Thread Kasun De Silva
Hi Imesh, FYI, following is a service created by AppCloud for an application in tenant aaa.com, Application name apple Version 1.0.0 NAMESPACE NAME CLUSTER_IP EXTERNAL_IPPORT(S) SELECTOR AGE aaa-comapple-1-0-0-8080

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-04 Thread Kasun De Silva
Hi Imesh, Yes, we already add labels such as appname and version as of now to kubernetes entities for the purpose of tracking. Further more we plan to add service port also in service labels to differentiate http and https services from our side. @Pirin: Do we have a formula to generate 24

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Imesh Gunaratne
On Fri, Mar 4, 2016 at 11:38 AM, Pirinthapan Mahendran wrote: > Hi Imesh and Lakmal, > > Thanks for the replies. Since the generated hash value is sufficient, we > are going with that solution. > +1 It might be better to add labels to the services including their metadata

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Pirinthapan Mahendran
Hi Imesh and Lakmal, Thanks for the replies. Since the generated hash value is sufficient, we are going with that solution. Thanks, Pirinthapan. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. On Fri, Mar 4, 2016 at 11:13 AM, Lakmal Warusawithana

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Lakmal Warusawithana
On Fri, Mar 4, 2016 at 9:33 AM, Lakmal Warusawithana wrote: > > > On Thu, Mar 3, 2016 at 9:42 PM, Pirinthapan Mahendran < > pirintha...@wso2.com> wrote: > >> Hi all, >> >> In AppCloud, when deploying application in Kubernetes we are using the >> following pattern as the service

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Lakmal Warusawithana
On Thu, Mar 3, 2016 at 9:42 PM, Pirinthapan Mahendran wrote: > Hi all, > > In AppCloud, when deploying application in Kubernetes we are using the > following pattern as the service name. > > *--* > > We are using the above pattern because a particular Application can be >

Re: [Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Imesh Gunaratne
Hi Pirinthapan, We had the same problem in Stratos when creating K8S services. The way we resolved that is using a sequence number and a prefix [1]: *"service-"* [1]

[Architecture] [AppCloud] Defining the Service Name in Kubernetes

2016-03-03 Thread Pirinthapan Mahendran
Hi all, In AppCloud, when deploying application in Kubernetes we are using the following pattern as the service name. *--* We are using the above pattern because a particular Application can be identified by Application Name and Version within a tenant. But Kubernetes limits the number of