Configuring service meshes

From jeremylongshore/claude-code-plugins-plus-skills · View interactive version

Configuring service meshes is an AI agent skill from the GitHub repository jeremylongshore/claude-code-plugins-plus-skills. Configure this skill configures service meshes like istio and linkerd for microservices. it generates production-ready configurations, implements best practices, and ensures a security-first approach. use this skill when the user asks to "configure service ... Use when appropriate context detected.

How to use this skill

Skill file

Configuring Service Meshes

Overview

Configure service meshes (Istio, Linkerd, Consul Connect) for Kubernetes microservices architectures. Generate mTLS configurations, traffic management rules (routing, splitting, mirroring), observability integrations (distributed tracing, metrics), and resilience patterns (retries, circuit breakers, timeouts).

Prerequisites

Instructions

  1. Select the service mesh based on requirements: Istio for full-featured L7 control, Linkerd for lightweight simplicity, Consul Connect for multi-platform
  2. Install the control plane: istioctl install --set profile=production or linkerd install | kubectl apply -f -
  3. Enable sidecar injection for target namespaces: label namespaces with istio-injection=enabled or linkerd.io/inject=enabled
  4. Configure mTLS: set PeerAuthentication to STRICT mode for zero-trust inter-service communication
  5. Define traffic management rules: VirtualService for routing, DestinationRule for load balancing and circuit breaking
  6. Set up traffic splitting for canary deployments: route a percentage of traffic to the new version
  7. Configure retry policies and timeouts to improve resilience against transient failures
  8. Integrate observability: connect to Jaeger/Zipkin for distributed tracing, Prometheus for metrics, and Kiali for visualization
  9. Validate the mesh: verify sidecar injection, mTLS status, and traffic routing with istioctl analyze or linkerd check

Output

Error Handling

| Error | Cause | Solution |

|-------|-------|---------|

| sidecar not injected | Namespace not labeled for injection or pod has annotation to skip | Add istio-injection=enabled label to namespace; check pod annotations |

| mTLS handshake failed | Mismatched TLS settings between services or missing certificates | Set PeerAuthentication to PERMISSIVE temporarily; check istioctl proxy-status |

| 503 Service Unavailable | Circuit breaker tripped or upstream connection pool exhausted | Review DestinationRule connection pool settings; increase maxConnections and http2MaxRequests |

| traffic not splitting correctly | VirtualService weight percentages misconfigured | Verify weights sum to 100; check VirtualService is bound to the correct gateway/host |

| high latency after mesh install | Sidecar proxy adding overhead or misconfigured timeouts | Tune proxy resources; review timeout settings; check if services are using HTTP/2 |

Examples

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.