From the course: Kubernetes: Service Mesh with Istio
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Destination rules - Kubernetes Tutorial
From the course: Kubernetes: Service Mesh with Istio
Destination rules
- [Instructor] In the last video, we talked about how virtual services act like a GPS, guiding traffic to the right destination. But once traffic gets there, how do we decide what happens next? That's where destination rules come in. Think of destination rules as the rule of the road. Once traffic reaches its destination, these rules manage how it flows. They let us fine tune and control how traffic inside the mesh is handled. Let's do a quick recap. Earlier, we saw how with a virtual service, we can route 75% of traffic to version 1 of a service and 25% to version 2. But how does it still know what version 1 or version 2 means? That's the magic of destination rules. They group instances of a service into subsets using labels like version: v1 or version: v2. This label style is to exactly where to send the traffic. Here's how it all comes together. In your Kubernetes deployment files, you attach labels like version: v1 to specific pods. Destination rules use those labels to define…
Contents
-
-
-
-
-
(Locked)
Introduction to traffic management4m 4s
-
(Locked)
Virtual services3m 56s
-
(Locked)
Destination rules4m 6s
-
(Locked)
Waypoint proxies4m 29s
-
Request routing through VirtualService and destination rules9m 31s
-
(Locked)
Traffic shifting7m 56s
-
(Locked)
Fault injection6m 18s
-
(Locked)
Timeouts and retries8m 26s
-
(Locked)
Circuit breaking8m 15s
-
(Locked)
-
-
-