Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3955F10F42 for ; Thu, 18 Dec 2014 19:26:01 +0000 (UTC) Received: (qmail 48839 invoked by uid 500); 18 Dec 2014 19:26:01 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 48799 invoked by uid 500); 18 Dec 2014 19:26:01 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 48789 invoked by uid 99); 18 Dec 2014 19:26:00 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 19:26:00 +0000 Received: from mail-oi0-f54.google.com (mail-oi0-f54.google.com [209.85.218.54]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 663281A01DB for ; Thu, 18 Dec 2014 19:25:59 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id u20so840486oif.13 for ; Thu, 18 Dec 2014 11:25:58 -0800 (PST) X-Received: by 10.202.93.135 with SMTP id r129mr2180171oib.53.1418930758739; Thu, 18 Dec 2014 11:25:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.171.147 with HTTP; Thu, 18 Dec 2014 11:25:38 -0800 (PST) In-Reply-To: References: From: Imesh Gunaratne Date: Fri, 19 Dec 2014 00:55:38 +0530 Message-ID: Subject: Re: [Discuss] Defining Docker/Kubernetes Configuration in the IaasProvider Section To: dev Content-Type: multipart/alternative; boundary=001a113d4a96d5f1a8050a828fee --001a113d4a96d5f1a8050a828fee Content-Type: text/plain; charset=UTF-8 Thanks Lakmal, yes I think we can reuse cluster min/max for Kubernetes replica min/max. On Fri, Dec 19, 2014 at 12:50 AM, Lakmal Warusawithana wrote: > > > > On Fri, Dec 19, 2014 at 12:21 AM, Imesh Gunaratne > wrote: >> >> Hi Devs, >> >> Currently we define Docker/Kubernetes configuration in the cartridge >> definition using a property called deployerType. >> >> This properly can only have the value "kubernetes". I think it would be >> better if we could reuse the IaasProvider section for this. WDYT? >> >> A sample cartridge definition: >> { >> "*type*":"tomcat", >> "*category*":"framework", >> ... >> "*iaasProvider*":[ >> { >> "*type*":"kubernetes", >> "*imageId*":"apache-tomcat/v7", >> "*maxInstanceLimit*":"2", >> "*property*":[ >> { >> "*name*":"KUBERNETES_CLUSTER_ID", >> "*value*":"kubernetes-cluster-1" >> }, >> { >> "*name*":"KUBERNETES_REPLICAS_MIN", >> "*value*":"3" >> }, >> { >> "*name*":"KUBERNETES_REPLICAS_MAX", >> "*value*":"20" >> > > Min and max does not comes with cartridge definitions. It should come with > application definition. > > > >> } >> ] >> } >> ] >> } >> >> Thanks >> >> >> -- >> Imesh Gunaratne >> >> Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > > > -- > Lakmal Warusawithana > Vice President, Apache Stratos > Director - Cloud Architecture; WSO2 Inc. > Mobile : +94714289692 > Blog : http://lakmalsview.blogspot.com/ > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos --001a113d4a96d5f1a8050a828fee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Lakmal, yes I think we can reuse cluster min/max fo= r Kubernetes replica min/max.

On Fri, Dec 19, 2014 at 12:50 AM, Lakmal Warusawithana <la= kmal@wso2.com> wrote:


On Fri, Dec 19, 2014 at 12:21 AM, Imesh Gunaratne <imesh@apach= e.org> wrote:
=
Hi Devs,

Currently we define Docker/Kuber= netes configuration in the cartridge definition using a property called dep= loyerType.=C2=A0

This properly can only have the v= alue "kubernetes". I think it would be better if we could reuse t= he IaasProvider section for this. WDYT?

A sample c= artridge definition:
{ =C2=A0
=C2=A0 =C2=A0"type":"= tomcat",
=C2=A0 =C2=A0"= category":"framework",
=C2=A0 =C2=A0 ...
=C2= =A0 =C2=A0"iaasProvider":[ =C2=A0
=C2=A0 =C2=A0 =C2=A0 { =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"type":&q= uot;kubernetes",
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0"imageId":"apache-tomcat/v7&q= uot;,
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0"maxInstanceLimit":"2",
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"propert= y":[ =C2=A0
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"nam= e":"KUBERNETES_CLUSTER_ID",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"= ;value":"kubernetes-cluster-1"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 {= =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"name":"KUBERNETES_REP= LICAS_MIN",
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"value":"3&q= uot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 { =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"name":"KUBERNETES_REPLICAS_MAX",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"value":"20"

Min and max does not comes with cartridge definitions. It sh= ould come with application definition.

=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0]<= /div>
=C2=A0 =C2=A0 =C2=A0 }
= =C2=A0 =C2=A0]
}

Thanks=C2=A0


--
Imesh Gunaratne

Technical Lead, WSO2
<= font>Committer & PMC Member, Apache Stratos

--
Lakmal Warusawi= thana
Vice President, Apache Stratos
Director - Cloud Architect= ure; WSO2 Inc.
Mobile : +94714289692


--
Imesh Gunaratne

Te= chnical Lead, WSO2
Committer & PMC Member, Apach= e Stratos
--001a113d4a96d5f1a8050a828fee--