istio-traffic-management

Configure Istio VirtualServices, DestinationRules, and Gateways for service mesh traffic control.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill istio-traffic-management-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: istio-traffic-management
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/istio-traffic-management
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill istio-traffic-management-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing traffic between microservices in a Kubernetes service mesh requires complex Istio configuration, and writing correct VirtualService, DestinationRule, and Gateway manifests from scratch is error-prone and time-consuming. ## Core Features & Use Cases - Routing and Progressive Delivery: Ready-to-use templates for header-based routing, canary deployments with weighted traffic splits, and blue-green release patterns. - Resilience Patterns: Configurations for circuit breakers with outlier detection, retries with backoff, timeouts, and connection pooling. - Testing and Debugging: Traffic mirroring, fault injection for chaos engineering, and istioctl debugging commands for inspecting routes and endpoints. - Use Case: When rolling out a new version of a service, apply the canary template to shift 10% of traffic to the new subset, then use the circuit breaker template to protect against cascading failures. ## Quick Start Ask the AI to generate an Istio VirtualService and DestinationRule that routes 90% of traffic to a stable subset and 10% to a canary subset of your service.

Frequently Asked Questions about istio-traffic-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a canary deployment with Istio?

Create a VirtualService with weighted route destinations splitting traffic between stable and canary subsets, such as 90/10. Define the subsets in a DestinationRule using version labels, then gradually shift weight as the canary proves healthy.

How to configure a circuit breaker in Istio?

Define outlierDetection in a DestinationRule trafficPolicy, setting consecutive5xxErrors, interval, baseEjectionTime, and maxEjectionPercent. Combine it with connectionPool limits on TCP connections and HTTP pending requests to cap load on failing hosts.

What is the difference between VirtualService and DestinationRule in Istio?

A VirtualService defines how traffic is routed to destinations, including matches, weights, retries, and timeouts. A DestinationRule defines policies applied after routing, such as subsets, load balancing, connection pools, and outlier detection.

Does Istio support sticky sessions for load balancing?

Yes, Istio supports session affinity through consistentHash load balancing in a DestinationRule. You can hash on an HTTP header, cookie, source IP, or query parameter to route repeat requests to the same backend pod.

Why is my Istio retry configuration causing cascading failures?

Excessive retry attempts amplify load on already struggling backends, worsening outages. Limit attempts, set perTryTimeout, restrict retryOn conditions, and pair retries with outlier detection so unhealthy endpoints are ejected quickly.

How do I debug Istio routing problems with istioctl?

Run istioctl analyze to validate configuration, then use istioctl proxy-config routes and endpoints on a deployment to inspect the effective Envoy configuration. Raise proxy log levels with istioctl proxy-config log for deeper traffic debugging.