Token导航 LogoToken导航TokenDH.com
运维和基础设施external-servicegithub未标认证来源可访问许可证需确认审计通过

k8s-kindKubernetes kind 命令行

Agent Skill

k8s-kind 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

275

周安装

11

GitHub Stars

869

下载量

89
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:k8s-kind(Kubernetes kind 命令行)
来源仓库:https://github.com/rohitg00/kubectl-mcp-server
仓库路径:skills/k8s-kind
安装命令:
npx skills add https://github.com/rohitg00/kubectl-mcp-server --skill k8s-kind
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rohitg00/kubectl-mcp-server --skill k8s-kind

简介

k8s-kind 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在开发协作中整理项目状态和变更记录。

  • 适用于 Kubernetes kind 命令行相关的代码变更和协作事项整理。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限范围和维护状态后再使用。
  • 安装前建议核实是否会触发联网、命令执行或文件读写操作,避免影响系统安全。
  • 具体用法请结合原始 README 文档进一步核验功能细节和使用限制。

SKILL.md

kind (Kubernetes IN Docker) Management

Manage local Kubernetes clusters using kubectl-mcp-server's kind tools (32 tools).

kind enables running local Kubernetes clusters using Docker container "nodes". It's ideal for local development, CI/CD testing, and testing across Kubernetes versions.

When to Apply

Use this skill when:

  • User mentions: "kind", "local cluster", "Kubernetes in Docker", "dev cluster"
  • Operations: creating local clusters, loading images, CI/CD testing
  • Keywords: "local development", "test cluster", "load image", "multi-node"

Priority Rules

PriorityRuleImpactTools
1Detect kind CLI firstCRITICALkind_detect_tool
2Generate config for complex setupsHIGHkind_config_generate_tool
3Load images after cluster creationHIGHkind_load_image_tool
4Export logs for debuggingMEDIUMkind_export_logs_tool

Quick Reference

TaskToolExample
Detect kindkind_detect_toolkind_detect_tool()
Create clusterkind_create_cluster_toolkind_create_cluster_tool(name)
Load imagekind_load_image_toolkind_load_image_tool(images, name)
Get kubeconfigkind_get_kubeconfig_toolkind_get_kubeconfig_tool(name)

Prerequisites

  • kind CLI: Required for all kind tools # macOS brew install kind # or download binary curl -Lo./kind https://kind.sigs.k8s.io/dl/latest/kind-$(uname)-amd64 chmod +x./kind && sudo mv./kind /usr/local/bin/kind
  • Docker: Required (kind runs clusters in Docker containers)

Check Installation

kind_detect_tool()

kind_version_tool()

kind_provider_info_tool()

List Clusters

kind_list_clusters_tool()

Get Cluster Information

kind_cluster_info_tool(name="my-cluster")

kind_cluster_status_tool(name="my-cluster")

kind_get_nodes_tool(name="my-cluster")

kind_node_labels_tool(name="my-cluster")

Configuration Management

Generate Config

kind_config_generate_tool()

kind_config_generate_tool(workers=2, control_planes=1)

kind_config_generate_tool(workers=2, ingress=True, registry=True)

kind_config_generate_tool(control_planes=3, workers=3)

Validate Config

kind_config_validate_tool(config_path="/path/to/kind.yaml")

Show Running Config

kind_config_show_tool(name="my-cluster")

Available Images

kind_available_images_tool()

Get Kubeconfig

kind_get_kubeconfig_tool(name="my-cluster")

kind_get_kubeconfig_tool(name="my-cluster", internal=True)

Export Logs

kind_export_logs_tool(name="my-cluster")

kind_export_logs_tool(name="my-cluster", output_dir="/tmp/kind-logs")

Cluster Lifecycle

Create Cluster

kind_create_cluster_tool()

kind_create_cluster_tool(name="dev-cluster")

kind_create_cluster_tool(
    name="v129-cluster",
    image="kindest/node:v1.29.0"
)

kind_create_cluster_tool(
    name="multi-node",
    config="kind-config.yaml"
)

Multi-Node Config Example

Create a file kind-config.yaml:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  extraPortMappings:
  - containerPort: 30000
    hostPort: 30000
    protocol: TCP
- role: worker
- role: worker

Delete Cluster

kind_delete_cluster_tool(name="dev-cluster")

kind_delete_all_clusters_tool()

Local Registry Integration

Create Registry

kind_registry_create_tool()

kind_registry_create_tool(name="my-registry", port=5001)

Connect Cluster to Registry

kind_registry_connect_tool(cluster_name="my-cluster")

Check Registry Status

kind_registry_status_tool()

Registry Workflow

kind_registry_create_tool()

config = kind_config_generate_tool(registry=True)

kind_create_cluster_tool(name="dev", config="/tmp/kind.yaml")

kind_registry_connect_tool(cluster_name="dev")

Image Loading (Key Feature!)

The ability to load local Docker images directly into kind clusters is one of its most powerful features for local development.

Load Docker Images

kind_load_image_tool(images="myapp:latest", name="my-cluster")

kind_load_image_tool(
    images="myapp:latest,mydb:latest,myweb:v1",
    name="my-cluster"
)

Load from Archive

kind_load_image_archive_tool(
    archive="/path/to/images.tar",
    name="my-cluster"
)

List Images on Cluster

kind_images_list_tool(cluster="my-cluster")

kind_images_list_tool(cluster="my-cluster", node="my-cluster-worker")

Node Management

Inspect Node

kind_node_inspect_tool(node="kind-control-plane")

Get Node Logs

kind_node_logs_tool(node="kind-control-plane")

kind_node_logs_tool(node="kind-control-plane", tail=200)

Execute Command on Node

kind_node_exec_tool(
    node="kind-control-plane",
    command="crictl images"
)

kind_node_exec_tool(
    node="kind-control-plane",
    command="journalctl -u kubelet --no-pager -n 50"
)

Restart Node

kind_node_restart_tool(node="kind-worker")

Networking

Inspect Network

kind_network_inspect_tool()

List Port Mappings

kind_port_mappings_tool(cluster="my-cluster")

Setup Ingress

kind_ingress_setup_tool(cluster="my-cluster")

kind_ingress_setup_tool(cluster="my-cluster", ingress_type="contour")

Advanced: Build Node Image

Build custom node images from Kubernetes source:

kind_build_node_image_tool()

kind_build_node_image_tool(
    image="my-custom-node:v1.30.0",
    kube_root="/path/to/kubernetes"
)

Update Kubeconfig

kind_set_kubeconfig_tool(name="my-cluster")

Development Workflow

Quick Local Development

kind_create_cluster_tool(name="dev")

kind_load_image_tool(images="myapp:dev", name="dev")

kubectl_apply(manifest="""
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 1
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myapp
        image: myapp:dev
        imagePullPolicy: Never
""")

Development with Local Registry

kind_registry_create_tool()

config = kind_config_generate_tool(workers=1, ingress=True, registry=True)

kind_create_cluster_tool(name="dev", config="/tmp/kind-config.yaml")

kind_registry_connect_tool(cluster_name="dev")

kind_ingress_setup_tool(cluster="dev")

CI/CD Testing

kind_create_cluster_tool(
    name="ci-test",
    image="kindest/node:v1.29.0",
    wait="3m"
)

kind_load_image_tool(images="test-image:ci", name="ci-test")

kind_delete_cluster_tool(name="ci-test")

Version Testing

kind_create_cluster_tool(name="v128", image="kindest/node:v1.28.0")
kind_create_cluster_tool(name="v129", image="kindest/node:v1.29.0")
kind_create_cluster_tool(name="v130", image="kindest/node:v1.30.0")

kind_list_clusters_tool()

Troubleshooting

Cluster Creation Issues

kind_create_cluster_tool(name="debug", retain=True)

kind_export_logs_tool(name="debug")

kind_get_nodes_tool(name="debug")

Cluster Health Check

kind_cluster_status_tool(name="my-cluster")

Node Issues

kind_node_inspect_tool(node="kind-control-plane")

kind_node_logs_tool(node="kind-control-plane")

kind_node_exec_tool(
    node="kind-control-plane",
    command="crictl ps"
)

kind_node_restart_tool(node="kind-worker")

Network Issues

kind_network_inspect_tool()

kind_port_mappings_tool()

Cleanup

kind_delete_cluster_tool(name="broken-cluster")

kind_delete_all_clusters_tool()

CLI Installation

Install kind CLI:

# macOS (Apple Silicon)
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-darwin-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# macOS (Intel)
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-darwin-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Linux
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind

# Verify
kind version

Tool Reference

Read-Only Tools (20)

ToolDescription
kind_detect_toolDetect CLI installation
kind_version_toolGet CLI version
kind_list_clusters_toolList all clusters
kind_get_nodes_toolList nodes in cluster
kind_get_kubeconfig_toolGet kubeconfig
kind_export_logs_toolExport cluster logs
kind_cluster_info_toolGet cluster info
kind_node_labels_toolGet node labels
kind_config_validate_toolValidate config file
kind_config_generate_toolGenerate config YAML
kind_config_show_toolShow running config
kind_available_images_toolList K8s versions
kind_registry_status_toolCheck registry status
kind_node_logs_toolGet node logs
kind_node_inspect_toolInspect node details
kind_network_inspect_toolInspect Docker network
kind_port_mappings_toolList port mappings
kind_cluster_status_toolGet cluster health
kind_images_list_toolList images on nodes
kind_provider_info_toolGet provider info

Write Tools (12)

ToolDescription
kind_create_cluster_toolCreate cluster
kind_delete_cluster_toolDelete cluster
kind_delete_all_clusters_toolDelete all clusters
kind_load_image_toolLoad Docker images
kind_load_image_archive_toolLoad from archive
kind_build_node_image_toolBuild node image
kind_set_kubeconfig_toolSet kubeconfig context
kind_registry_create_toolCreate local registry
kind_registry_connect_toolConnect to registry
kind_node_exec_toolExecute on node
kind_node_restart_toolRestart node
kind_ingress_setup_toolSetup ingress

kind vs vind (vCluster)

Featurekindvind (vCluster)
PurposeLocal dev/CI clustersVirtual clusters in existing K8s
IsolationFull clusters in DockerVirtual namespaces with isolation
Resource UsageHigher (full cluster)Lower (shares host cluster)
Best ForLocal testing, CI/CDMulti-tenancy, dev environments
RequiresDockerExisting K8s cluster

Related Skills

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.47%
按下载量换算33

Claude

30.5%
按下载量换算27

Cursor

19.9%
按下载量换算18

Gemini CLI

10.05%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills