service-mesh
A service mesh is an infrastructure layer that provides transparent service-to-service communication with built-in observability, traffic management, and…

Установить service-mesh в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Service Mesh
Level 1: Quick Reference
What is a Service Mesh?
A service mesh is an infrastructure layer that provides transparent service-to-service communication with built-in observability, traffic management, and security features without requiring application code changes.
Core Components:
- Control Plane: Configuration and policy management (Istiod)
- Data Plane: Sidecar proxies handling traffic (Envoy)
- Service Identity: Certificate-based authentication (mTLS)
Key Benefits
1. Observability
- Automatic metrics collection (latency, throughput, errors)
- Distributed tracing (request flow visualization)
- Traffic topology and service dependencies
- Real-time dashboards (Kiali, Grafana)
2. Traffic Management
- Intelligent routing (canary, blue-green, A/B)
- Load balancing (round-robin, least-request, consistent hash)
- Traffic splitting and mirroring
- Request retries and timeouts
3. Security
- Automatic mutual TLS (mTLS) encryption
- Service-to-service authentication
- Fine-grained authorization policies
- Certificate rotation and management
4. Resilience
- Circuit breaking and outlier detection
- Rate limiting and quota management
- Fault injection for chaos testing
- Connection pooling
Istio vs Linkerd Comparison
| Feature | Istio | Linkerd |
|---|---|---|
| Proxy | Envoy (C++) | Linkerd2-proxy (Rust) |
| Resource Usage | Higher (100-200MB/pod) | Lower (10-20MB/pod) |
| Features | Comprehensive (100+ CRDs) | Focused (essential features) |
| Complexity | More complex setup | Simpler, faster setup |
| Multi-cluster | Full support | Basic support |
| Traffic Management | Advanced (mirroring, A/B) | Basic (canary, split) |
| Observability | Full stack (Kiali/Jaeger) | Built-in (Linkerd Viz) |
| Maturity | Production-ready (CNCF) | Production-ready (CNCF) |
Choose Istio when:
- Need advanced traffic management (mirroring, A/B testing)
- Multi-cluster or multi-cloud deployments
- Complex authorization requirements
- Established operations team
Choose Linkerd when:
- Resource efficiency is critical
- Prefer simplicity over features
- Kubernetes-only environment
- Faster onboarding required
Essential Service Mesh Checklist
Pre-Installation:
□ Kubernetes cluster v1.22+ running
□ CNI plugin supporting network policies
□ Prometheus and Grafana available
□ Resource capacity planned (2-4 CPU, 4-8GB RAM)
□ DNS resolution working correctly
Post-Installation:
□ mTLS enabled cluster-wide (STRICT mode)
□ Sidecar injection configured (automatic/manual)
□ Monitoring dashboards accessible
□ Health checks and readiness probes adjusted
□ Certificate rotation configured
□ Resource limits set on proxies
Traffic Management:
□ VirtualService defines routing rules
□ DestinationRule configures load balancing
□ Circuit breaking thresholds set
□ Retry policies configured
□ Timeouts appropriate for services
Security:
□ Authorization policies applied (default-deny)
□ PeerAuthentication enforces mTLS
□ Service accounts properly scoped
□ Ingress/egress gateways secured
□ Certificate validity monitored
Quick Start Commands
# Install Istio (demo profile)
istioctl install --set profile=demo -y
# Enable sidecar injection
kubectl label namespace default istio-injection=enabled
# Deploy sample app
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
# Create ingress gateway
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
# Check mesh status
istioctl proxy-status
# View metrics
kubectl -n istio-system port-forward svc/kiali 20001:20001
Common Patterns
Canary Deployment:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: reviews-canary
spec:
hosts:
- reviews
http:
- match:
- headers:
end-user:
exact: jason
route:
- destination:
host: reviews
subset: v2
- route:
- destination:
host: reviews
subset: v1
weight: 90
- destination:
host: reviews
subset: v2
weight: 10
Circuit Breaking:
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: reviews-circuit-breaker
spec:
host: reviews
trafficPolicy:
connectionPool:
tcp:
maxConnections: 100
http:
http1MaxPendingRequests: 10
maxRequestsPerConnection: 2
outlierDetection:
consecutiveErrors: 5
interval: 30s
baseEjectionTime: 30s
maxEjectionPercent: 50
Zero Trust Security:
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: deny-all
namespace: default
spec:
{} # Empty spec denies all traffic
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: allow-frontend-to-backend
spec:
selector:
matchLabels:
app
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- REFERENCE.md
- resources/service-mesh-patterns.md
- scripts/setup-service-mesh.sh
- templates/authorization-policy.yaml
- templates/destination-rule.yaml
- templates/istio-installation.yaml
- templates/virtual-service.yaml
FAQ
Что делает скилл service-mesh?
A service mesh is an infrastructure layer that provides transparent service-to-service communication with built-in observability, traffic management, and security features without requiring application code changes.
Как установить скилл service-mesh?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл service-mesh запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
