Maybe this diagram can help explain how you can use label queries to
accomplish this:

https://speakerdeck.com/philips/coreos-a-tutorial-on-hyperscale-infrastructure?slide=100

Brandon

On Tue, Nov 15, 2016 at 11:31 PM Vinoth Narasimhan <talk2.v...@gmail.com>
wrote:

> Let say i have 4 pods running . 2 have them label "app=xyz" and 2 of them
> lable "app=abc" under the same service "testservice"
>
>
> I want to hit the pods services through "testservice" only to the pods
> have the label "app=xyz"
>
>
> when hit "http://testservice"; it will loadbalance across all the 4 pods .
>
> I need to specific to forward the request to the pods which has the label
> "app=xyz"
>
>
> like http://testservice.<lables app=xyz>
>
>
>
>
> On Wednesday, November 16, 2016 at 12:50:01 PM UTC+5:30, Brandon Philips
> wrote:
>
> Yes, create a service with a label selector for each combination:
>
> http://kubernetes.io/docs/user-guide/labels/#label-selectors
> http://kubernetes.io/docs/user-guide/services/#defining-a-service
>
>
> On Tue, Nov 15, 2016 at 11:12 PM Vinoth Narasimhan <talk2...@gmail.com>
> wrote:
>
> Our aim is to replace the Netflix Discovery with Kubernetes service Layer.
>
> Our team register the Microservices app with Netflix eureka with metadata
> like "tetant:xyz" and "tetant:abc" and uses Zuul to dynamic routing to the
> app based on the Metadata from headers.
>
>
> Through kubernetes services we can find the pod ip and port to forward.
>
> Is there a way like forward the service to specific pod by using the
> labels.
>
> Let say i have one service layer in kubernetes say "testservice" with
> lables "app=xyz" and "app=abc"
>
> and i stared with 4 pod with 2 of them have selector "app=xyz" and 2 of
> them have "app=abc" under the same service layer "testservice"
>
>
> Is there a way to access the service "testservice" to only the pod group
> which has "app=xyz" and "app=abc"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-use...@googlegroups.com.
> To post to this group, send email to kubernet...@googlegroups.com.
>
>
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
  • [kubernetes-u... Vinoth Narasimhan
    • Re: [kub... Brandon Philips
      • Re: ... Vinoth Narasimhan
        • ... Brandon Philips
          • ... Vinoth Narasimhan
            • ... 'David Aronchick' via Kubernetes user discussion and Q&A
              • ... Rodrigo Campos
                • ... Vinoth Narasimhan
              • ... Vinoth Narasimhan

Reply via email to