← 返回 Skills 市场
rohitg00

Kubernetes Skills

作者 Rohit Ghumare · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2081
总下载
1
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install k8s-capi
功能描述
Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.
使用说明 (SKILL.md)

Cluster API Lifecycle Management

Manage Kubernetes clusters using kubectl-mcp-server's Cluster API tools (11 tools).

Check Installation

capi_detect_tool()

List Clusters

# List all CAPI clusters
capi_clusters_list_tool(namespace="default")

# Shows:
# - Cluster name
# - Phase (Provisioning, Provisioned, Deleting)
# - Infrastructure ready
# - Control plane ready

Get Cluster Details

capi_cluster_get_tool(name="my-cluster", namespace="default")

# Shows:
# - Spec (control plane, infrastructure)
# - Status (phase, conditions)
# - Network configuration

Get Cluster Kubeconfig

# Get kubeconfig for workload cluster
capi_cluster_kubeconfig_tool(name="my-cluster", namespace="default")

# Returns kubeconfig to access the cluster

Machines

List Machines

capi_machines_list_tool(namespace="default")

# Shows:
# - Machine name
# - Cluster
# - Phase (Running, Provisioning, Failed)
# - Provider ID
# - Version

Get Machine Details

capi_machine_get_tool(name="my-cluster-md-0-xxx", namespace="default")

Machine Deployments

List Machine Deployments

capi_machinedeployments_list_tool(namespace="default")

# Shows:
# - Deployment name
# - Cluster
# - Replicas (ready/total)
# - Version

Scale Machine Deployment

# Scale worker nodes
capi_machinedeployment_scale_tool(
    name="my-cluster-md-0",
    namespace="default",
    replicas=5
)

Machine Sets

capi_machinesets_list_tool(namespace="default")

Machine Health Checks

capi_machinehealthchecks_list_tool(namespace="default")

# Health checks automatically remediate unhealthy machines

Cluster Classes

# List cluster templates
capi_clusterclasses_list_tool(namespace="default")

# ClusterClasses define reusable cluster configurations

Create Cluster

kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: my-cluster
  namespace: default
spec:
  clusterNetwork:
    pods:
      cidrBlocks:
      - 192.168.0.0/16
    services:
      cidrBlocks:
      - 10.96.0.0/12
  controlPlaneRef:
    apiVersion: controlplane.cluster.x-k8s.io/v1beta1
    kind: KubeadmControlPlane
    name: my-cluster-control-plane
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
    kind: AWSCluster
    name: my-cluster
""")

Create Machine Deployment

kubectl_apply(manifest="""
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
  name: my-cluster-md-0
  namespace: default
spec:
  clusterName: my-cluster
  replicas: 3
  selector:
    matchLabels:
      cluster.x-k8s.io/cluster-name: my-cluster
  template:
    spec:
      clusterName: my-cluster
      version: v1.28.0
      bootstrap:
        configRef:
          apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
          kind: KubeadmConfigTemplate
          name: my-cluster-md-0
      infrastructureRef:
        apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
        kind: AWSMachineTemplate
        name: my-cluster-md-0
""")

Cluster Lifecycle Workflows

Provision New Cluster

1. kubectl_apply(cluster_manifest)
2. capi_clusters_list_tool(namespace)  # Wait for Provisioned
3. capi_cluster_kubeconfig_tool(name, namespace)  # Get access

Scale Workers

1. capi_machinedeployments_list_tool(namespace)
2. capi_machinedeployment_scale_tool(name, namespace, replicas)
3. capi_machines_list_tool(namespace)  # Monitor

Upgrade Cluster

1. # Update control plane version
2. # Update machine deployment version
3. capi_machines_list_tool(namespace)  # Monitor rollout

Troubleshooting

Cluster Stuck Provisioning

1. capi_cluster_get_tool(name, namespace)  # Check conditions
2. capi_machines_list_tool(namespace)  # Check machine status
3. get_events(namespace)  # Check events
4. # Check infrastructure provider logs

Machine Failed

1. capi_machine_get_tool(name, namespace)
2. get_events(namespace)
3. # Common issues:
   # - Cloud provider quota
   # - Invalid machine template
   # - Network issues

Related Skills

安全使用建议
This skill appears to do what it says (manage Cluster API resources) but there are a few things to check before installing: 1) Confirm the platform supplies the capi_* and kubectl_apply tools and understand which kubeconfig or credentials those tools will use. 2) Ensure cloud provider credentials (if any) are stored and scoped appropriately — the skill itself doesn't declare needing them. 3) Consider disabling autonomous model invocation or requiring explicit user confirmation for any kubectl_apply actions, since the skill can perform destructive changes. 4) Test the skill in a non-production/staging environment first and only enable it if you trust its source and the execution safeguards.
功能分析
Type: OpenClaw Skill Name: k8s-capi Version: 1.0.0 The skill bundle is designed for Kubernetes Cluster API lifecycle management. It utilizes specific `capi_*_tool` functions and `kubectl_apply` to manage Kubernetes clusters, including creating resources and retrieving kubeconfigs. While these actions involve high privileges and sensitive data (kubeconfigs), they are explicitly aligned with the stated purpose of the skill. There is no evidence of prompt injection attempting to subvert the agent, data exfiltration to external endpoints, malicious execution, persistence mechanisms, or obfuscation in any of the provided files.
能力评估
Purpose & Capability
Name/description (Cluster API lifecycle management) align with the SKILL.md which documents capi_* tool calls and kubectl_apply-based workflows for provisioning, scaling, and upgrading clusters.
Instruction Scope
Instructions are narrowly focused on Cluster API operations (listing clusters/machines, getting kubeconfigs, applying manifests). However, they include potentially destructive actions (kubectl_apply) and vague steps like 'Check infrastructure provider logs' that don't specify how to access provider credentials or logs. The skill assumes availability of capi_* tools and appropriate kubeconfig/permissions but doesn't state safeguards (e.g., confirmation before apply).
Install Mechanism
No install spec or code files are present (instruction-only), which minimizes installer risk. The SKILL.md assumes preexisting platform-provided tools rather than installing anything itself.
Credentials
The skill declares no required environment variables or credentials. Example manifests reference AWS provider kinds (AWSCluster, AWSMachineTemplate), which in practice often require cloud credentials somewhere (controller secrets or host config). The absence of any declared credential requirements is explainable but should be confirmed with the platform: who holds the cloud creds and kubeconfigs the skill will use?
Persistence & Privilege
No flags are set to prevent autonomous invocation (disableModelInvocation not set). That means the model could call capi_* tools or kubectl_apply automatically, potentially making changes to clusters. For a skill that can apply manifests and manage infrastructure, allowing autonomous invocation is a notable risk and should be explicitly controlled.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install k8s-capi
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /k8s-capi 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
k8s-capi 1.0.0 – Initial release - Introduces Cluster API lifecycle management tools for provisioning, scaling, and upgrading Kubernetes clusters. - Provides utilities to list, inspect, and manage clusters, machines, and deployments using kubectl-mcp-server. - Includes workflows for cluster creation, scaling, upgrades, and troubleshooting. - Adds examples for obtaining kubeconfigs, applying manifests, and monitoring cluster health. - Links to related skills for multi-cluster and general Kubernetes operations.
元数据
Slug k8s-capi
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Kubernetes Skills 是什么?

Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2081 次。

如何安装 Kubernetes Skills?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install k8s-capi」即可一键安装,无需额外配置。

Kubernetes Skills 是免费的吗?

是的,Kubernetes Skills 完全免费(开源免费),可自由下载、安装和使用。

Kubernetes Skills 支持哪些平台?

Kubernetes Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kubernetes Skills?

由 Rohit Ghumare(@rohitg00)开发并维护,当前版本 v1.0.0。

💬 留言讨论