<p>Is it possible to specify a <a href="http://kubernetes.io/v1.0/docs/user-guide/labels.html#set-based-requirement" rel="nofollow">set-based label selector</a> for a replication controller? I cannot figure out the syntax to do so in the request json. I can't find anything in the documentation, so if you have a link to the appropriate documentation, that would be helpful.</p>

<p>This is something we want to support, and is/was underway (see PR 7053), but it is not yet possible. </p>

<p>You can observe the status/progress on:
<a href="https://github.com/kubernetes/kubernetes/issues/341" rel="nofollow">https://github.com/kubernetes/kubernetes/issues/341</a></p>

<p>It's possible to work around the lack of this feature by creating a new label that would match the selector you'd like and then create a trivial selector that matches that new label.</p>

<p>FYI, you can see the API specification for ReplicationController's spec here:
<a href="http://kubernetes.io/v1.0/docs/api-reference/definitions.html#_v1_replicationcontrollerspec" rel="nofollow">http://kubernetes.io/v1.0/docs/api-reference/definitions.html#_v1_replicationcontrollerspec</a></p>

<p>The schema is listed as "any", but it's actually a map of string to string, like labels.</p>
