Great finding, Nirmal!

This would simplify things for us.

But what happens if multiple containers are created in a specific host
machine for a single POD? How will Kubernetes handle container hostname
uniqueness?

Thanks.
On 30 Sep 2014 10:07, "Nirmal Fernando" <[email protected]> wrote:

> After an IRC chat with folks from Google, I found that we could do label
> queries via Kubernetes API even thought it was not documented. They filed
> an issue for this
> https://github.com/GoogleCloudPlatform/kubernetes/issues/1501
>
> So, with this in hand;
>
> * We could find Pods that are created by a ReplicationController.
> * We could terminate a specific Pod created for a service cluster.
>
> Further, we could get the PodId from within a docker container using
> hostname (apparently hostname of a docker instance equals to Pod Id.).
>
> On Fri, Sep 26, 2014 at 3:20 PM, Manula Chathurika Thantriwatte <
> [email protected]> wrote:
>
>> Hi All,
>>
>> I have upstream the merged changes to master branch. Now you can commit
>> to master branch. If you are working on docker-integration branch and make
>> a commit to it, make sure to commit that change to master branch as well.
>>
>> Thanks !
>>
>> On Fri, Sep 26, 2014 at 11:26 AM, Manula Chathurika Thantriwatte <
>> [email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I have merged docker integration branch with master branch and build
>>> successfully. I'll perform a clean build and push the changes to master.
>>>
>>> Thanks !
>>>
>>> On Fri, Sep 26, 2014 at 10:17 AM, Manula Chathurika Thantriwatte <
>>> [email protected]> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Please hold commits to docker integration and master branch. I'm going
>>>> to merge docker integration branch to master branch. I'll update the
>>>> progress once it's done.
>>>>
>>>> Thanks !
>>>>
>>>> On Fri, Sep 26, 2014 at 12:56 AM, Rajkumar Rajaratnam <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have tested the latest autoscaler logic. It is working as expected.
>>>>> After creating containers, it waits for at least one member activated
>>>>> event. If it doesn't get any member activated within a certain period, It
>>>>> asks CC to kill all containers and start all again. I have  used the 
>>>>> latest
>>>>> PHP image. But I didn't get the member activated event yet. So it is
>>>>> continuously killing and starting. Attached the log.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Thu, Sep 25, 2014 at 7:40 PM, Manula Chathurika Thantriwatte <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I have merge docker-integration branch with master branch. Fix the
>>>>>> merge conflicts. But when building there are lots of build breaks.
>>>>>> Currently I'm working on fixing these build breaks. I'll push the changes
>>>>>> once the master branch build success and run the complete test.
>>>>>>
>>>>>> Thanks !
>>>>>>
>>>>>> On Thu, Sep 25, 2014 at 10:30 AM, Sajith Kariyawasam <[email protected]
>>>>>> > wrote:
>>>>>>
>>>>>>> Hi Nirmal,
>>>>>>>
>>>>>>> I will look into the remaining tasks
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sajith
>>>>>>>
>>>>>>> On Thu, Sep 25, 2014 at 8:45 AM, Nirmal Fernando <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Overall update of the testing I carried out.
>>>>>>>>
>>>>>>>>  - Kubernetes host registration
>>>>>>>>      - Docker cartridge deployment
>>>>>>>>      - Docker cartridge subscription
>>>>>>>>      - Creation of docker instances in the Kubernetes host
>>>>>>>>      - MQTT communication implementation
>>>>>>>>
>>>>>>>> Items left to be done as I identified are following:
>>>>>>>>
>>>>>>>>      - Rebase docker-integration branch to master branch (please
>>>>>>>> make sure to preserve history by using git rebase)
>>>>>>>>      - Docker instance activation
>>>>>>>>      - Behaviour of auto-scaler with the latest logic
>>>>>>>>      - Access PHP running in a docker instance via a SLB.
>>>>>>>>      - Documentation
>>>>>>>>
>>>>>>>> Please add/correct if I've missed anything.
>>>>>>>>
>>>>>>>> On Wed, Sep 24, 2014 at 3:04 PM, Nirmal Fernando <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> Please take sometime to update the Jira and move Jiras that are
>>>>>>>>> not ready for M1 to M2.
>>>>>>>>>
>>>>>>>>> I am going to do another round of testing and gonna report the
>>>>>>>>> issues I may find.
>>>>>>>>>
>>>>>>>>> ---------- Forwarded message ----------
>>>>>>>>> From: Nirmal Fernando <[email protected]>
>>>>>>>>> Date: Fri, Sep 12, 2014 at 10:23 AM
>>>>>>>>> Subject: Re: Shall we plan for a 4.1.0-M1 developer preview?
>>>>>>>>> To: dev <[email protected]>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I create 4.1.0 M1 and M2 versions in the Jira. Please update the
>>>>>>>>> version of the Jiras you are planning to get to the first developer 
>>>>>>>>> preview
>>>>>>>>> as 4.1.0 M1.
>>>>>>>>>
>>>>>>>>> We need to come up with a code freeze date too. I'd suggest we
>>>>>>>>> code freeze for M1 on 13th September 8pm PST. Thoughts?
>>>>>>>>>
>>>>>>>>> On Wed, Sep 10, 2014 at 8:23 PM, Nirmal Fernando <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> I'll create a 4.1.0 M1 version, so that we can tag Jiras that
>>>>>>>>>> are/will be ready.
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 10, 2014 at 6:40 PM, Lakmal Warusawithana <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> If we are targeting this week for M1, what are the features can
>>>>>>>>>>> ship? JIRA list?
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 10, 2014 at 4:55 PM, Lakmal Warusawithana <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Dev,
>>>>>>>>>>>>
>>>>>>>>>>>> How about $subject? IMO, it will help all devs to check their
>>>>>>>>>>>> dependancies.
>>>>>>>>>>>>
>>>>>>>>>>>> thanks
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Lakmal Warusawithana
>>>>>>>>>>>> Vice President, Apache Stratos
>>>>>>>>>>>> Director - Cloud Architecture; WSO2 Inc.
>>>>>>>>>>>> Mobile : +94714289692
>>>>>>>>>>>> Blog : http://lakmalsview.blogspot.com/
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Lakmal Warusawithana
>>>>>>>>>>> Vice President, Apache Stratos
>>>>>>>>>>> Director - Cloud Architecture; WSO2 Inc.
>>>>>>>>>>> Mobile : +94714289692
>>>>>>>>>>> Blog : http://lakmalsview.blogspot.com/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best Regards,
>>>>>>>>>> Nirmal
>>>>>>>>>>
>>>>>>>>>> Nirmal Fernando.
>>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>>
>>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best Regards,
>>>>>>>>> Nirmal
>>>>>>>>>
>>>>>>>>> Nirmal Fernando.
>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>
>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Best Regards,
>>>>>>>>> Nirmal
>>>>>>>>>
>>>>>>>>> Nirmal Fernando.
>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>
>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best Regards,
>>>>>>>> Nirmal
>>>>>>>>
>>>>>>>> Nirmal Fernando.
>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>
>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Sajith Kariyawasam*
>>>>>>>
>>>>>>>
>>>>>>> *Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
>>>>>>> <http://wso2.com>AMIE (SL)Mobile: +94772269575*
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Manula Chathurika Thantriwatte
>>>>>> Software Engineer
>>>>>> WSO2 Inc. : http://wso2.com
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>> email : [email protected] / [email protected]
>>>>>> phone : +94 772492511
>>>>>> blog : http://manulachathurika.blogspot.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Rajkumar Rajaratnam
>>>>> Software Engineer | WSO2, Inc.
>>>>> Mobile +94777568639 | +94783498120
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Manula Chathurika Thantriwatte
>>>> Software Engineer
>>>> WSO2 Inc. : http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>> email : [email protected] / [email protected]
>>>> phone : +94 772492511
>>>> blog : http://manulachathurika.blogspot.com/
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Manula Chathurika Thantriwatte
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>> lean . enterprise . middleware
>>>
>>> email : [email protected] / [email protected]
>>> phone : +94 772492511
>>> blog : http://manulachathurika.blogspot.com/
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Manula Chathurika Thantriwatte
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>> lean . enterprise . middleware
>>
>> email : [email protected] / [email protected]
>> phone : +94 772492511
>> blog : http://manulachathurika.blogspot.com/
>>
>>
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>

Reply via email to