[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: node labels in openshift-ansible inventory



A label can only specify a single value per key on a particular object.

There is work underway upstream for label selectors that are more
complex (e.g. "region in (a,b,c)"), but that is on the selector side,
not the actual labeling side.


> On Nov 15, 2015, at 4:48 PM, Aleksandar Kostadinov <akostadi redhat com> wrote:
>
> Thank you. Didn't realize that's kubernetes feature. I could now easily find:
> http://kubernetes.io/v1.0/docs/user-guide/labels.html
>
> "Each object can have a set of key/value labels defined. Each Key must be unique for a given object."
>
> If this is correct (I bet it is), then that is not possible.
>
> Thanks a lot for quick response.
>
> Jason DeTiberus wrote on 11/15/2015 11:42 PM:
>> It is not possible in openshift-ansible, if it is possible in kube, we
>> can modify openshift-ansible to accommodate it.
>>
>> On Nov 15, 2015 4:23 PM, "Aleksandar Kostadinov" <akostadi redhat com
>> <mailto:akostadi redhat com>> wrote:
>>
>>    Hello,
>>
>>    I was wondering if it is possible to set on a node multiple labels
>>    with same key, e.g.
>>    region=primary
>>    region=region2
>>
>>    Perhaps region is not the best usage for that but anyway.
>>
>>    I see format in inventory is given in example as:
>>     > myhost openshift_node_labels="{'region': 'primary', 'zone':
>>    'default'}"
>>
>>    If this is JSON, then it is definitely not possible. But it doesn't
>>    look like strict JSON so I thought there is some hope.
>>
>>    Thank you,
>>    Aleksandar
>>
>>    _______________________________________________
>>    users mailing list
>>    users lists openshift redhat com
>>    <mailto:users lists openshift redhat com>
>>    http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]