AgentMarketMCP / SKILL 资产档案馆

目录 / 开发工具 / Kubernetes Skills

SKILL 未评级 已上架

Kubernetes Skills

--- name: k8s-multicluster description: Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle. --- # Multi-Cluster Kubernetes Management Cross-cluster operations and context management using kubectl-mcp-server's multi-cluster support. ## Context Management ### List Available Contexts ``` list_contexts_tool() ``` ### View Current Context ``` kubeconfig_view() # Shows sanitized kubeconfig ``` ### Switch Context CLI: `kubectl-mcp-server context <context-name>` ## Cross-Cluster Operations All kubectl-mcp-server tools support the `context` parameter: ```python # Get pods from production cluster get_pods(namespace="default", context="production-cluster") # Get pods from staging cluster get_pods(namespace="default", context="staging-cluster") ``` ## Common Multi-Cluster Patterns ### Compare Environments ``` # Compare deployment across clusters compare_namespaces( namespace1="production", namespace2="staging", resource_type="deployment", context="production-cluster" ) ``` ### Parallel Queries Query multiple clusters simultaneously: ``` # Production cluster get_pods(namespace="app", context="prod-us-east") get_pods(namespace="app", context="prod-eu-west") # Development cluster get_pods(namespace="app", context="development") ``` ### Cross-Cluster Health Check ``` # Check all clusters for context in ["prod-1", "prod-2", "staging"]: get_nodes(context=context) get_pods(namespace="kube-system", context=context) ``` ## Cluster API (CAPI) Management For managing cluster lifecycle: ### List Managed Clusters ``` capi_clusters_list_tool(namespace="capi-system") ``` ### Get Cluster Details ``` capi_cluster_get_tool(name="prod-cluster", namespace="capi-system") ``` ### Get Workload Cluster Kubeconfig ``` capi_cluster_kubeconfig_tool(name="prod-cluster", namespace="capi-system") ``` ### Machine Management ``` capi_machines_list_tool(namespace="capi-system") capi_machinedeployments_list_tool(namespace="capi-system") ``` ### Scale Cluster ``` capi_machinedeployment_scale_tool( name="prod-cluster-md-0", namespace="capi-system", replicas=5 ) ``` See [CONTEXT-SWITCHING.md](CONTEXT-SWITCHING.md) for detailed patterns. ## Multi-Cluster Helm Deploy charts to specific clusters: ``` install_helm_chart( name="nginx", chart="bitnami/nginx", namespace="web", context="production-cluster" ) list_helm_releases( namespace="web", context="staging-cluster" ) ``` ## Multi-Cluster GitOps ### Flux Across Clusters ``` flux_kustomizations_list_tool( namespace="flux-system", context="cluster-1" ) flux_reconcile_tool( kind="kustomization", name="apps", namespace="flux-system", context="cluster-2" ) ``` ### ArgoCD Across Clusters ``` argocd_apps_list_tool(namespace="argocd", context="management-cluster") ``` ## Federation Patterns ### Secret Synchronization ``` # Read from source cluster get_secrets(namespace="app", context="source-cluster") # Apply to target cluster (via manifest) apply_manifest(secret_manifest, namespace="app", context="target-cluster") ``` ### Cross-Cluster Service Discovery With Cilium ClusterMesh or Istio multi-cluster: ``` cilium_nodes_list_tool(context="cluster-1") istio_proxy_status_tool(context="cluster-2") ``` ## Best Practices 1. **Naming Convention**: Use descriptive context names - `prod-us-east-1`, `staging-eu-west-1` 2. **Access Control**: Different kubeconfigs per environment - Prod: Read-only for most users - Dev: Full access for developers 3. **Always Specify Context**: Avoid accidental cross-cluster operations ``` # Explicit is better get_pods(namespace="app", context="production") ``` 4. **Cluster Groups**: Organize by purpose - Production: `prod-*` - Staging: `staging-*` - Development: `dev-*` ## Related Skills - [k8s-troubleshoot](../k8s-troubleshoot/SKILL.md) - Debug across clusters - [k8s-gitops](../k8s-gitops/SKILL.md) - GitOps multi-cluster

模型生成摘要(rules/v1 · 2026-10-22 22:57):---
这是模型对公开材料的总结,不是官方声明,请以原链内容为准。

存档时间线

版本存档时间内容哈希内容
v592026-10-01 10:15f25bc521 已过保留期
v602026-10-01 10:1599c6174a 已过保留期
v612026-10-01 10:157c07ca4d 已过保留期
v622026-10-01 10:1523b0514a 已过保留期
v632026-10-01 19:48d4d5cbff 已过保留期
v642026-10-02 06:03f25bc521 已过保留期
v652026-10-02 06:0399c6174a 已过保留期
v662026-10-02 06:037c07ca4d 已过保留期
v672026-10-02 06:0323b0514a 已过保留期
v682026-10-23 06:55d89d3f26 可取

版本索引永久保留;内容副本只保留最新 1 份,更早版本仅留索引与哈希(存档时间线的证据链不会因此断裂)。

下载存档内容副本

相关资产

MCP 需 API Key

otel-server

MCP server for Docker container inspection and OpenTelemetry trace querying via Jaeger

容器化
原作者:cruz-andr 来源:Smithery 仅卡片存档
MCP 需 API Key

K8sCortex - Kubernetes MCP Server

Production-grade MCP server for Kubernetes — 75 tools across GKE, AKS, EKS, OpenShift and Minikube with RBAC, audit logg…

容器化
原作者:apatil0431 来源:Smithery 仅卡片存档
MCP 需 API Key

AgentAvow Trust

AgentAvow scans any MCP server, package (npm/PyPI/crates/Docker/Hugging Face), or GitHub repo and returns a **signed, of…

容器化
原作者:kennethives 来源:Smithery 仅卡片存档
MCP 需 API Key

fusional

Unified MCP gateway that loads 150+ AI tools via a single Docker command

容器化
原作者:jrm-fusional 来源:Smithery 仅卡片存档
MCP 需 API Key

docker-compose-audit

docker-compose-audit:提供 audit_compose: Run the full security audit against a docker-… 等能力

容器化
原作者:unbearabledev 来源:Smithery 仅卡片存档
MCP 需 API Key

Bank of Canada Foreign Exchange (Docker)

A containerized MCP server to retrieve official Bank of Canada foreign exchange rates (USD/CAD) for historical business …

容器化
原作者:bill-ying 来源:Smithery 仅卡片存档
纠错与举报(发现条目失效、署名有误或涉及侵权?)
提交举报 / 纠错

侵权举报经核验成立后,我们会即时下线该条目并删除已存的内容副本。