Kubernetes Cluster API (CAPI) Manager for Openclaw

Automate the provisioning, scaling, and lifecycle management of Kubernetes clusters using the Cluster API (CAPI) framework.

rohitg00
v1.0.0
Jan 26, 2026
1
3.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install k8s-capi

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install k8s-capi using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Kubernetes Cluster API (CAPI) Manager?

The k8s-capi skill is a specialized toolset designed for managing the full lifecycle of Kubernetes clusters through the Cluster API (CAPI) paradigm. By leveraging the kubectl-mcp-server, this skill enables AI agents to interact with management clusters to provision, scale, and upgrade workload clusters across various infrastructure providers. It is an essential component of Openclaw Skills for teams operating in multi-cluster environments who need to treat infrastructure as code while maintaining high-level control over machine health and cluster configurations.

Kubernetes Cluster API (CAPI) Manager Use Cases

  • Automating the provisioning of new production or development Kubernetes clusters.
  • Dynamic scaling of worker node pools by adjusting MachineDeployment replicas.
  • Executing rolling upgrades of Kubernetes versions across machine sets.
  • Retrieving secure kubeconfig credentials for automated workload cluster access.
  • Diagnosing infrastructure failures or provisioning bottlenecks through detailed resource inspection.

How Kubernetes Cluster API (CAPI) Manager Works

  1. The skill initiates by verifying the environment with the capi_detect_tool to ensure Cluster API components are active.
  2. Users can query the management cluster to list and inspect the state of clusters, machines, and deployments.
  3. Lifecycle operations like scaling or upgrading are performed by interacting with MachineDeployment and MachineSet resources.
  4. Infrastructure changes are applied via declarative manifests that the skill monitors for completion.
  5. Continuous health monitoring is facilitated through machine state checks and event logs to ensure the desired infrastructure state is maintained.

Kubernetes Cluster API (CAPI) Manager Setup

To get started with this addition to your Openclaw Skills library, ensure you have a management cluster with Cluster API providers installed.

  1. Install the kubectl-mcp-server if not already present.
  2. Verify your CAPI installation within the environment:
capi_detect_tool()
  1. Ensure your management cluster has the necessary permissions to manage the targeted infrastructure (AWS, Azure, GCP, etc.).

Kubernetes Cluster API (CAPI) Manager Data Schema & Taxonomy

The k8s-capi skill organizes infrastructure data into several key resource types:

Resource Purpose Primary Attributes
Cluster The root object for a managed cluster Phase, Infrastructure Readiness, Control Plane Status
Machine Represents a single node Phase (Running/Failed), Provider ID, Version
MachineDeployment Manages a group of Machines Replicas (Ready/Total), Version, Selector Labels
MachineHealthCheck Defines health criteria Remediation policy, Target selectors
ClusterClass Reusable configuration templates Blueprints for cluster creation

Kubernetes Cluster API (CAPI) Manager Advanced Features

  • Automated remediation of unhealthy nodes using MachineHealthCheck configurations.
  • Multi-provider support allowing management of clusters across different cloud environments.
  • Template-based provisioning using ClusterClasses for standardized infrastructure deployments.
  • Detailed condition tracking for granular troubleshooting of infrastructure-level issues.
  • Deep integration with Openclaw Skills to facilitate complex multi-cluster orchestration workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*