<< All versions
Skill v1.0.1
currentAutomated scan96/100rohitg00/kubectl-mcp-server/k8s-service-mesh
6 files
──Details
PublishedOctober 24, 2026 at 05:59 PM
Content Hashsha256:42a355b345d1538f...
Git SHAa3fef9fe2310
Bump Typepatch
──Files
Files (1 file, 4.5 KB)
SKILL.md4.5 KBactive
SKILL.md · 229 lines · 4.5 KB
version: "1.0.1" name: k8s-service-mesh description: Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting. license: MIT-0 metadata: author: rohitg00 version: "2.0.0" tools: 13 category: networking
Kubernetes Service Mesh (Istio)
Traffic management, security, and observability using kubectl-mcp-server's Istio/Kiali tools.
Requires thecilium,istiotoolsets: start kubectl-mcp-server with--toolsets default,cilium,istio(orMCP_TOOLSETS=default,cilium,istio).
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 | detect_ecosystem | |
| 2 | Run analyze before changes | HIGH | istio_analyze | |
| 3 | Check proxy status for sync | HIGH | istio_proxy_status | |
| 4 | Verify sidecar injection | MEDIUM | istio_sidecar_status |
Quick Reference
| Task | Tool | Example | |
|---|---|---|---|
| Detect Istio | detect_ecosystem | detect_ecosystem() | |
| Analyze config | istio_analyze | istio_analyze(namespace) | |
| Proxy status | istio_proxy_status | istio_proxy_status() | |
| List VirtualServices | istio_virtualservices_list | istio_virtualservices_list(namespace) |
Quick Status Check
Detect Istio Installation
python
detect_ecosystem()
Check Proxy Status
python
istio_proxy_status()istio_sidecar_status(namespace)
Analyze Configuration
python
istio_analyze(namespace)
Traffic Management
VirtualServices
List and inspect:
python
istio_virtualservices_list(namespace)istio_virtualservice_get(name, namespace)
See TRAFFIC-SHIFTING.md for canary and blue-green patterns.
DestinationRules
python
istio_destinationrules_list(namespace)
Gateways
python
istio_gateways_list(namespace)
Traffic Shifting Patterns
Canary Release (Weight-Based)
VirtualService for 90/10 split:
yaml
apiVersion: networking.istio.io/v1beta1kind: VirtualServicemetadata:name: my-servicespec:hosts:- my-servicehttp:- route:- destination:host: my-servicesubset: stableweight: 90- destination:host: my-servicesubset: canaryweight: 10
Apply and verify:
python
kubectl_apply(vs_yaml, namespace)istio_virtualservice_get("my-service", namespace)
Header-Based Routing
Route beta users:
yaml
http:- match:- headers:x-user-type:exact: betaroute:- destination:host: my-servicesubset: canary- route:- destination:host: my-servicesubset: stable
Security (mTLS)
See MTLS.md for detailed mTLS configuration.
PeerAuthentication (mTLS Mode)
python
istio_peerauthentications_list(namespace)
AuthorizationPolicy
python
istio_authorizationpolicies_list(namespace)
Observability
Proxy Metrics
python
istio_proxy_status()
Hubble (Cilium Integration)
If using Cilium with Istio:
python
get_hubble_flows(namespace)cilium_list_endpoints(namespace)
Troubleshooting
Sidecar Not Injected
python
istio_sidecar_status(namespace)
Traffic Not Routing
python
istio_analyze(namespace)istio_virtualservice_get(name, namespace)istio_destinationrules_list(namespace)istio_proxy_status()
mTLS Failures
python
istio_peerauthentications_list(namespace)
Common Issues
| Symptom | Check | Resolution | |
|---|---|---|---|
| 503 errors | istio_analyze() | Fix VirtualService/DestinationRule | |
| No sidecar | istio_sidecar_status() | Label namespace | |
| Config not applied | istio_proxy_status() | Wait for sync or restart pod |
Multi-Cluster Service Mesh
Istio multi-cluster setup:
python
istio_proxy_status(context="primary")istio_virtualservices_list(namespace, context="primary")istio_proxy_status(context="remote")
Prerequisites
- Istio: Required for all Istio tools
``bash istioctl install --set profile=demo ``
Related Skills
- k8s-deploy - Deployment with traffic shifting
- k8s-security - Authorization policies