跳到正文
cccskills
免费在 GitHub 公开

k8s-service-mesh

Manage Istio service mesh for traffic management, security, and observability. Use for traffic shifting, canary releases, mTLS, and service mesh troubleshooting.

中文简介正在准备中。当前显示原文说明。

集成工具Kubernetes

实测评分 未实测

查看安装方法

包含的文件(3)

  • SKILL.md4.5 KB
  • MTLS.md3.7 KB
  • TRAFFIC-SHIFTING.md3.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Kubernetes Service Mesh (Istio)

Traffic management, security, and observability using kubectl-mcp-server's Istio/Kiali tools.

Requires the cilium, istio toolsets: start kubectl-mcp-server with --toolsets default,cilium,istio (or MCP_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

PriorityRuleImpactTools
1Detect Istio installation firstCRITICALdetect_ecosystem
2Run analyze before changesHIGHistio_analyze
3Check proxy status for syncHIGHistio_proxy_status
4Verify sidecar injectionMEDIUMistio_sidecar_status

Quick Reference

TaskToolExample
Detect Istiodetect_ecosystemdetect_ecosystem()
Analyze configistio_analyzeistio_analyze(namespace)
Proxy statusistio_proxy_statusistio_proxy_status()
List VirtualServicesistio_virtualservices_lististio_virtualservices_list(namespace)

Quick Status Check

Detect Istio Installation

detect_ecosystem()

Check Proxy Status

istio_proxy_status()
istio_sidecar_status(namespace)

Analyze Configuration

istio_analyze(namespace)

Traffic Management

VirtualServices

List and inspect:

istio_virtualservices_list(namespace)
istio_virtualservice_get(name, namespace)

See TRAFFIC-SHIFTING.md for canary and blue-green patterns.

DestinationRules

istio_destinationrules_list(namespace)

Gateways

istio_gateways_list(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("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(namespace)

AuthorizationPolicy

istio_authorizationpolicies_list(namespace)

Observability

Proxy Metrics

istio_proxy_status()

Hubble (Cilium Integration)

If using Cilium with Istio:

get_hubble_flows(namespace)
cilium_list_endpoints(namespace)

Troubleshooting

Sidecar Not Injected

istio_sidecar_status(namespace)

Traffic Not Routing

istio_analyze(namespace)
istio_virtualservice_get(name, namespace)
istio_destinationrules_list(namespace)
istio_proxy_status()

mTLS Failures

istio_peerauthentications_list(namespace)

Common Issues

SymptomCheckResolution
503 errorsistio_analyze()Fix VirtualService/DestinationRule
No sidecaristio_sidecar_status()Label namespace
Config not appliedistio_proxy_status()Wait for sync or restart pod

Multi-Cluster Service Mesh

Istio multi-cluster setup:

istio_proxy_status(context="primary")
istio_virtualservices_list(namespace, context="primary")

istio_proxy_status(context="remote")

Prerequisites

  • Istio: Required for all Istio tools
    istioctl install --set profile=demo
    

Related Skills

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure Kubernetes autoscaling with HPA, VPA, and KEDA. Use for horizontal/vertical pod autoscaling, event-driven scaling, and capacity management.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

k8s-capi

免费

Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

k8s-certs

免费

Kubernetes certificate management with cert-manager. Use when managing TLS certificates, configuring issuers, or troubleshooting certificate issues.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

Cilium and Hubble network observability for Kubernetes. Use when managing network policies, observing traffic flows, or troubleshooting connectivity with eBPF-based networking.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

k8s-cli

免费

kubectl-mcp-server CLI commands for tool discovery, direct invocation, and diagnostics. Use when exploring available tools, calling tools from command line, or checking server health.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年10月23日 更新

查看 rohitg00 的全部技能

报告此技能的问题