k8s-service-mesh
Facilitates Kubernetes service mesh operations including traffic management and security policy enforcement.
Install
mkdir -p .claude/skills/k8s-service-mesh && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5602" && unzip -o skill.zip -d .claude/skills/k8s-service-mesh && rm skill.zipInstalls to .claude/skills/k8s-service-mesh
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.Key capabilities
- →Detect Istio installations
- →Analyze service mesh configurations
- →Inspect VirtualServices and DestinationRules
- →Verify sidecar injection status
- →Implement traffic shifting patterns
How it works
It uses specific Istio tools to analyze cluster state, verify proxy health, and apply traffic management policies via kubectl.
Inputs & outputs
When to use k8s-service-mesh
- →Configure canary releases
- →Manage traffic shifting
- →Implement mTLS security policies
- →Troubleshoot service mesh proxies
About this skill
Kubernetes Service Mesh (Istio)
Traffic management, security, and observability using kubectl-mcp-server's Istio/Kiali tools.
When to Apply
Use this skill when:
- User mentions: "Istio", "service mesh", "mTLS", "VirtualService", "traffic shifting"
- Operations: traffic management, canary deployments, security policies
- Keywords: "sidecar", "proxy", "traffic split", "mutual TLS"
Priority Rules
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Detect Istio installation first | CRITICAL | istio_detect_tool |
| 2 | Run analyze before changes | HIGH | istio_analyze_tool |
| 3 | Check proxy status for sync | HIGH | istio_proxy_status_tool |
| 4 | Verify sidecar injection | MEDIUM | istio_sidecar_status_tool |
Quick Reference
| Task | Tool | Example |
|---|---|---|
| Detect Istio | istio_detect_tool | istio_detect_tool() |
| Analyze config | istio_analyze_tool | istio_analyze_tool(namespace) |
| Proxy status | istio_proxy_status_tool | istio_proxy_status_tool() |
| List VirtualServices | istio_virtualservices_list_tool | istio_virtualservices_list_tool(namespace) |
Quick Status Check
Detect Istio Installation
istio_detect_tool()
Check Proxy Status
istio_proxy_status_tool()
istio_sidecar_status_tool(namespace)
Analyze Configuration
istio_analyze_tool(namespace)
Traffic Management
VirtualServices
List and inspect:
istio_virtualservices_list_tool(namespace)
istio_virtualservice_get_tool(name, namespace)
See TRAFFIC-SHIFTING.md for canary and blue-green patterns.
DestinationRules
istio_destinationrules_list_tool(namespace)
Gateways
istio_gateways_list_tool(namespace)
Traffic Shifting Patterns
Canary Release (Weight-Based)
VirtualService for 90/10 split:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: my-service
spec:
hosts:
- my-service
http:
- route:
- destination:
host: my-service
subset: stable
weight: 90
- destination:
host: my-service
subset: canary
weight: 10
Apply and verify:
kubectl_apply(vs_yaml, namespace)
istio_virtualservice_get_tool("my-service", namespace)
Header-Based Routing
Route beta users:
http:
- match:
- headers:
x-user-type:
exact: beta
route:
- destination:
host: my-service
subset: canary
- route:
- destination:
host: my-service
subset: stable
Security (mTLS)
See MTLS.md for detailed mTLS configuration.
PeerAuthentication (mTLS Mode)
istio_peerauthentications_list_tool(namespace)
AuthorizationPolicy
istio_authorizationpolicies_list_tool(namespace)
Observability
Proxy Metrics
istio_proxy_status_tool()
Hubble (Cilium Integration)
If using Cilium with Istio:
hubble_flows_query_tool(namespace)
cilium_endpoints_list_tool(namespace)
Troubleshooting
Sidecar Not Injected
istio_sidecar_status_tool(namespace)
Traffic Not Routing
istio_analyze_tool(namespace)
istio_virtualservice_get_tool(name, namespace)
istio_destinationrules_list_tool(namespace)
istio_proxy_status_tool()
mTLS Failures
istio_peerauthentications_list_tool(namespace)
Common Issues
| Symptom | Check | Resolution |
|---|---|---|
| 503 errors | istio_analyze_tool() | Fix VirtualService/DestinationRule |
| No sidecar | istio_sidecar_status_tool() | Label namespace |
| Config not applied | istio_proxy_status_tool() | Wait for sync or restart pod |
Multi-Cluster Service Mesh
Istio multi-cluster setup:
istio_proxy_status_tool(context="primary")
istio_virtualservices_list_tool(namespace, context="primary")
istio_proxy_status_tool(context="remote")
Prerequisites
- Istio: Required for all Istio tools
istioctl install --set profile=demo
Related Skills
- k8s-deploy - Deployment with traffic shifting
- k8s-security - Authorization policies
When not to use it
- →When managing non-Kubernetes networking
- →When performing manual proxy configuration without Istio
Prerequisites
Limitations
- →Requires Istio to be installed
- →Troubleshooting depends on correct namespace labeling
How it compares
It provides a dedicated interface for Istio-specific operations, whereas manual kubectl usage is prone to configuration errors.
Compared to similar skills
k8s-service-mesh side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| k8s-service-mesh (this skill) | 1 | 6mo | Review | Advanced |
| debug-cluster | 2 | 8mo | Review | Intermediate |
| lucas-runbook | 1 | 6mo | No flags | Beginner |
| k8s-core | 0 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by rohitg00
View all by rohitg00 →You might also like
debug-cluster
openshift
Provides systematic debugging approaches for HyperShift hosted-cluster issues. Auto-applies when debugging cluster problems, investigating stuck deletions, or troubleshooting control plane issues.
lucas-runbook
a2wio
Lucas runbook-driven troubleshooting for Kubernetes issues. Use when investigating pod errors, crashes, restarts, or any Kubernetes problem. Automatically search runbooks before taking action.
k8s-core
rohitg00
Core Kubernetes resource management for pods, namespaces, configmaps, secrets, and nodes. Use when listing, inspecting, or managing fundamental K8s objects.
skill-aks-health
microsoft
[Skill] aks, aks health, cluster health, node pool, activity logs - Inspect Koji AKS cluster health, node pool status, autoscaling, activity logs, deployment failures, and Azure control-plane operations.
kubernetes-specialist
agisota
Use when a task needs Kubernetes manifest review, rollout safety analysis, or cluster workload debugging.
k8s-debug
doleval013
Kubernetes debugging commands and troubleshooting for the K3s cluster