configuring-service-meshes
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. Trigger with relevant phrases based on skill purpose.
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- configuring-service-meshes
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- 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. Trigger with relevant phrases based on skill purpose.
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash(cmd:*)
- compatible-with
- claude-code, codex, openclaw
02 资源文件 11
- 资产文件assets/error_handling_strategies.md8.4 KB
- 资产文件assets/example_microservices_architecture.md5.6 KB
- 资产文件assets/istio_config_template.yaml2.3 KB
- 资产文件assets/linkerd_config_template.yaml3.5 KB
- 资产文件assets/README.md496 B
- 参考文档references/README.md69 B
- 脚本scripts/deploy_config.sh7.6 KB
- 脚本scripts/generate_test_traffic.py14.5 KB
- 脚本scripts/README.md506 B
- 脚本scripts/rollback_config.sh8.2 KB
- 脚本scripts/validate_config.py9.8 KB
03 SKILL.md 正文
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
- Kubernetes cluster accessible via
kubectlwith admin permissions - Service mesh CLI installed:
istioctl,linkerd, orconsul - Helm 3+ for service mesh installation charts
- Understanding of microservice communication patterns and dependencies
- Observability backend available (Jaeger, Zipkin, or Prometheus/Grafana) for tracing and metrics
Instructions
- Select the service mesh based on requirements: Istio for full-featured L7 control, Linkerd for lightweight simplicity, Consul Connect for multi-platform
- Install the control plane:
istioctl install --set profile=productionorlinkerd install | kubectl apply -f - - Enable sidecar injection for target namespaces: label namespaces with
istio-injection=enabledorlinkerd.io/inject=enabled - Configure mTLS: set PeerAuthentication to STRICT mode for zero-trust inter-service communication
- Define traffic management rules: VirtualService for routing, DestinationRule for load balancing and circuit breaking
- Set up traffic splitting for canary deployments: route a percentage of traffic to the new version
- Configure retry policies and timeouts to improve resilience against transient failures
- Integrate observability: connect to Jaeger/Zipkin for distributed tracing, Prometheus for metrics, and Kiali for visualization
- Validate the mesh: verify sidecar injection, mTLS status, and traffic routing with
istioctl analyzeorlinkerd check
Output
- Service mesh installation manifests or Helm values
- PeerAuthentication and AuthorizationPolicy manifests for mTLS and RBAC
- VirtualService and DestinationRule manifests for traffic management
- ServiceEntry manifests for external service access
- Observability integration configuration (Jaeger, Prometheus, Kiali)
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
- "Install Istio with strict mTLS on a production cluster and configure a VirtualService for canary routing: 90% to v1, 10% to v2."
- "Set up Linkerd on a microservices cluster with automatic retries (3 attempts, 500ms timeout) and integrate with Prometheus for golden signal metrics."
- "Configure an Istio AuthorizationPolicy that allows only the frontend service to call the API gateway, blocking all other inter-service traffic."
Resources
- Istio documentation: https://istio.io/latest/docs/
- Linkerd documentation: https://linkerd.io/2/overview/
- Consul Connect: https://developer.hashicorp.com/consul/docs/connect
- Kiali (service mesh observability): https://kiali.io/docs/
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
zustand-store-creator
Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.
zero-trust-config-helper
Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.
zapier-integration-helper
Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.
zai-cli
Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.
yt-research
Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.