From the course: Kubernetes: Service Mesh with Istio

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring rules to link specific labels

Configuring rules to link specific labels - Kubernetes Tutorial

From the course: Kubernetes: Service Mesh with Istio

Start my 1-month free trial

Configuring rules to link specific labels

- [Narrator] In order to build more dynamic rules within the Istio environment, we actually a way to redirect traffic against not just services, but possibly subsets of services. In the Istio world, there's the concept of a subset. And in our module directory, if we do an ls, we can look at our routing based on labels file, and here we can go through a couple of key things. First off, we're going to create a new resource called a destination rule. And the destination rule is how we map from labels, which are a Kubernetes model, to subsets, which are the Istio model. We're also going to update our virtual service so that it describes a subset as our default route. And then lastly, we'll go and check and make sure that we can still talk to the service using the hostname, so using the forwarding through the gateway like we'd set up earlier, and making sure that we're still talking to the right version. Now we're actually going to use the version endpoint for their particular service that…

Contents