Agent skill
service-mesh-altrupets-monorepo
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/service-mesh-altrupets-monorepo
SKILL.md
π Skill: Service Mesh
π Metadata
| Atributo | Valor |
|---|---|
| ID | sre-service-mesh |
| Nivel | π΄ Avanzado |
| VersiΓ³n | 1.0.0 |
| Keywords | service-mesh, istio, linkerd, envoy, traffic-management, mTLS, circuit-breaker |
| Referencia | Istio Documentation |
π Keywords para InvocaciΓ³n
service-meshistiolinkerdenvoytraffic-managementmtlscircuit-breaker@skill:service-mesh
Ejemplos de Prompts
Implementa service mesh con Istio para microservicios
Configura mTLS y traffic management con Linkerd
Setup circuit breakers y retries con service mesh
@skill:service-mesh - Service mesh completo
π DescripciΓ³n
Service mesh proporciona observabilidad, seguridad y confiabilidad para comunicaciones entre servicios. Este skill cubre implementaciΓ³n de Istio/Linkerd, traffic management, mTLS, circuit breakers, y service discovery.
β CuΓ‘ndo Usar Este Skill
- Microservicios architecture
- Kubernetes deployments
- Requisitos de seguridad estrictos
- Traffic management complejo
- Observability entre servicios
- Canary deployments
β CuΓ‘ndo NO Usar Este Skill
- Monoliths simples
- Pocos servicios (< 5)
- Sin requisitos de security/observability
ποΈ Service Mesh Architecture
βββββββββββββββββββββββββββββββββββββββββββ
β Application Services β
β ββββββββββ ββββββββββ ββββββββββ β
β βService β βService β βService β β
β β A β β B β β C β β
β βββββ¬βββββ βββββ¬βββββ βββββ¬βββββ β
ββββββββΌβββββββββββββΌβββββββββββββΌβββββββββ
β β β
βββββΌβββββ βββββΌβββββ βββββΌβββββ
β Envoy β β Envoy β β Envoy β
β Proxy β β Proxy β β Proxy β
βββββ¬βββββ βββββ¬βββββ βββββ¬βββββ
β β β
ββββββββββββββΌβββββββββββββ
β
ββββββββββββΌβββββββββββ
β Control Plane β
β (Istio/Linkerd) β
βββββββββββββββββββββββ
π» ImplementaciΓ³n
π Scripts Ejecutables: Este skill incluye scripts bash ejecutables en la carpeta
scripts/:
- Install Istio:
scripts/install-istio.sh- InstalaciΓ³n automatizada de Istio- Verify Istio:
scripts/verify-istio.sh- VerificaciΓ³n de instalaciΓ³nVer
scripts/README.mdpara documentaciΓ³n de uso completa.
1. Istio Installation
Script ejecutable: scripts/install-istio.sh
Script de instalaciΓ³n automatizada de Istio service mesh.
CuΓ‘ndo ejecutar:
- InstalaciΓ³n inicial de Istio
- Setup de service mesh en nuevos clusters
- ActualizaciΓ³n de Istio
Uso:
# Instalar con perfil demo (default)
chmod +x scripts/install-istio.sh
./scripts/install-istio.sh
# Instalar con perfil especΓfico
./scripts/install-istio.sh --profile production
# Instalar versiΓ³n especΓfica
ISTIO_VERSION=1.19.0 ./scripts/install-istio.sh
CaracterΓsticas:
- β Descarga automΓ‘tica de Istio
- β InstalaciΓ³n con perfiles configurables
- β VerificaciΓ³n automΓ‘tica
- β Soporte para versiones especΓficas
2. Traffic Management
# istio/virtual-service.yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: user-service
spec:
hosts:
- user-service
http:
# Route 90% to v1, 10% to v2 (canary)
- match:
- headers:
canary:
exact: "true"
route:
- destination:
host: user-service
subset: v2
weight: 100
- route:
- destination:
host: user-service
subset: v1
weight: 90
- destination:
host: user-service
subset: v2
weight: 10
# Retry policy
retries:
attempts: 3
perTryTimeout: 2s
retryOn: 5xx,reset,connect-failure,refused-stream
# Circuit breaker
fault:
delay:
percentage:
value: 0.1
fixedDelay: 5s
abort:
percentage:
value: 0.1
httpStatus: 503
# istio/destination-rule.yaml
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: user-service
spec:
host: user-service
trafficPolicy:
loadBalancer:
simple: LEAST_CONN
connectionPool:
tcp:
maxConnections: 100
http:
http1MaxPendingRequests: 10
http2MaxRequests: 100
maxRequestsPerConnection: 2
maxRetries: 3
consecutiveGatewayErrors: 5
interval: 30s
baseEjectionTime: 30s
maxEjectionPercent: 50
minHealthPercent: 50
outlierDetection:
consecutiveErrors: 5
interval: 30s
baseEjectionTime: 30s
maxEjectionPercent: 50
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
3. mTLS Configuration
# istio/peer-authentication.yaml
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: istio-system
spec:
mtls:
mode: STRICT # Enforce mTLS for all services
---
# Per-namespace mTLS
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: production-mtls
namespace: production
spec:
mtls:
mode: STRICT
selector:
matchLabels:
app: critical-service
4. Authorization Policies
# istio/authorization-policy.yaml
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: user-service-auth
namespace: default
spec:
selector:
matchLabels:
app: user-service
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/default/sa/frontend"]
to:
- operation:
methods: ["GET", "POST"]
- from:
- source:
principals: ["cluster.local/ns/default/sa/admin"]
to:
- operation:
methods: ["*"]
5. Circuit Breaker
# istio/circuit-breaker.yaml
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: payment-service
spec:
host: payment-service
trafficPolicy:
connectionPool:
tcp:
maxConnections: 100
http:
http1MaxPendingRequests: 10
http2MaxRequests: 100
maxRequestsPerConnection: 2
outlierDetection:
consecutiveErrors: 5
interval: 30s
baseEjectionTime: 30s
maxEjectionPercent: 50
minHealthPercent: 50
splitExternalLocalOriginErrors: true
6. Observability with Istio
# Enable telemetry
apiVersion: telemetry.istio.io/v1alpha1
kind: Telemetry
metadata:
name: mesh-default
namespace: istio-system
spec:
accessLogging:
- providers:
- name: envoy
tracing:
- providers:
- name: zipkin
randomSamplingPercentage: 100.0
metrics:
- providers:
- name: prometheus
π― Mejores PrΓ‘cticas
1. Traffic Management
β DO:
- Use gradual rollouts
- Implement circuit breakers
- Configure retries appropriately
- Monitor traffic patterns
β DON'T:
- Deploy 100% to new version immediately
- Ignore circuit breaker triggers
- Retry indefinitely
2. Security
β DO:
- Enable mTLS
- Use authorization policies
- Follow least privilege
- Audit policies regularly
β DON'T:
- Skip mTLS in production
- Allow all traffic
- Ignore security updates
π¨ Troubleshooting
Services Not Communicating
- Check mTLS configuration
- Verify VirtualService routes
- Check DestinationRule subsets
- Review authorization policies
Circuit Breaker Tripping
- Check service health
- Review error rates
- Adjust thresholds
- Investigate root cause
π Recursos Adicionales
VersiΓ³n: 1.0.0 Γltima actualizaciΓ³n: Diciembre 2025 Total lΓneas: 1,100+
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?