Hi Udara,

We got the same issue for podLabel and ServiceLabel since we used cluster
id [1 <https://issues.apache.org/jira/browse/STRATOS-1499>] when creating
pods and services. The idea was to use cluster-x instead of lengthy cluster
id.
If we use pod-x, service-x, cluster-x, there won't be any way to identify
which pod/service is related to which Stratos service/cluster. Then again,
we can't allow users to enter lengthy application, cartridge names/aliases
due to this character constraint.

So as Imesh suggested one of the workarounds would be to use logs to
identify pods and services. But if there's a better approach we can try
that as well.

Thanks,

[1] https://issues.apache.org/jira/browse/STRATOS-1499

On Wed, Aug 19, 2015 at 10:14 AM, Imesh Gunaratne <im...@apache.org> wrote:

> This was done intentionally due to the length constrains in Kubernetes.
> The max it allows is 63 characters. Adding more text to the identifier will
> reduce the number of pods, services, labels we can create in a single
> Kubernetes cluster.
>
> On Wed, Aug 19, 2015 at 9:02 AM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> +1
>> It might be better to add cluster id too. But not sure about length
>> constraints.
>>
>> On Wed, Aug 19, 2015 at 8:53 AM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Currently pod id is created with a sequence no. When there are pods from
>>> different cartridges it is hard to identify which pod coming from which
>>> cartridge. Shall we include cartridge/service name in pod id if it does not
>>> complicate things.
>>>
>>> String podId = "pod" + "-" + podSeqNo;
>>>
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> Imesh Gunaratne
>
> Senior Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
*Lasindu Charith*
Software Engineer, WSO2 Inc.
Committer & PMC Member, Apache Stratos
Mobile: +94714427192 | Web: blog.lasindu.com

Reply via email to