kubernetes-skills/claude/k8s-service-mesh/SKILL.md
Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.
npx skillsauth add rohitg00/kubectl-mcp-server k8s-service-meshInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Traffic management, security, and observability using kubectl-mcp-server's Istio/Kiali tools.
Use this skill when:
| 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 |
| 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) |
istio_detect_tool()
istio_proxy_status_tool()
istio_sidecar_status_tool(namespace)
istio_analyze_tool(namespace)
List and inspect:
istio_virtualservices_list_tool(namespace)
istio_virtualservice_get_tool(name, namespace)
See TRAFFIC-SHIFTING.md for canary and blue-green patterns.
istio_destinationrules_list_tool(namespace)
istio_gateways_list_tool(namespace)
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)
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
See MTLS.md for detailed mTLS configuration.
istio_peerauthentications_list_tool(namespace)
istio_authorizationpolicies_list_tool(namespace)
istio_proxy_status_tool()
If using Cilium with Istio:
hubble_flows_query_tool(namespace)
cilium_endpoints_list_tool(namespace)
istio_sidecar_status_tool(namespace)
istio_analyze_tool(namespace)
istio_virtualservice_get_tool(name, namespace)
istio_destinationrules_list_tool(namespace)
istio_proxy_status_tool()
istio_peerauthentications_list_tool(namespace)
| 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 |
Istio multi-cluster setup:
istio_proxy_status_tool(context="primary")
istio_virtualservices_list_tool(namespace, context="primary")
istio_proxy_status_tool(context="remote")
istioctl install --set profile=demo
development
Manage vCluster (virtual Kubernetes clusters) instances using vind. Use when creating, managing, or operating lightweight virtual clusters for development, testing, or multi-tenancy.
development
Debug Kubernetes pods, nodes, and workloads. Use when pods are failing, containers crash, nodes are unhealthy, or users mention debugging, troubleshooting, or diagnosing Kubernetes issues.
devops
Kubernetes storage management for PVCs, storage classes, and persistent volumes. Use when provisioning storage, managing volumes, or troubleshooting storage issues.
testing
Audit Kubernetes RBAC, enforce policies, and manage secrets. Use for security reviews, permission audits, policy enforcement with Kyverno/Gatekeeper, and secret management.