k8s-capi
Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.
Why use this skill?
Manage Kubernetes lifecycle, scale clusters, and monitor machine health with the OpenClaw k8s-capi skill. Streamline your multi-cluster infrastructure management today.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/rohitg00/k8s-capiWhat This Skill Does
The k8s-capi skill provides a comprehensive interface for managing Kubernetes clusters through the Cluster API (CAPI) framework. By integrating with the kubectl-mcp-server, this skill enables users to provision, scale, monitor, and manage the lifecycle of entire Kubernetes clusters directly from the OpenClaw agent. It abstracts complex infrastructure operations into simple, actionable tools, covering everything from listing cluster machines to managing machine deployments and monitoring cluster health via health checks.
Installation
To install this skill, use the OpenClaw hub command:
clawhub install openclaw/skills/skills/rohitg00/k8s-capi
Use Cases
This skill is designed for DevOps engineers, SREs, and platform teams managing multi-cluster Kubernetes environments. It is ideal for:
- Automating the lifecycle management of workload clusters across various providers (e.g., AWS, GCP, Azure).
- Scaling worker node pools dynamically based on workload demands using MachineDeployment scaling tools.
- Troubleshooting cluster health by inspecting machine status, health check results, and deployment states.
- Standardizing cluster creation through the use of ClusterClasses for repeatable infrastructure templates.
- Accessing remote clusters quickly by retrieving kubeconfig files programmatically.
Example Prompts
- "List all clusters in the 'production' namespace and show me their current provisioning phase."
- "Scale the worker node machine deployment 'production-cluster-md-0' to 10 replicas."
- "Check the status of all machines in 'staging-cluster' and tell me if any are in a failed state."
Tips & Limitations
- Permissions: Ensure the agent's underlying context has the necessary RBAC permissions on the management cluster to list and modify CAPI objects.
- Namespaces: Always specify the correct namespace if your clusters are isolated. If omitted, the tool typically defaults to 'default', which may lead to 'not found' errors if your resources reside elsewhere.
- Asynchronous Operations: Remember that CAPI operations are often asynchronous. Scaling or creating a cluster may take time for the infrastructure provider to provision resources. Always check the phase status using
capi_cluster_get_toolbefore assuming the operation is complete. - Error Handling: When running kubectl apply for new clusters, ensure your YAML manifests include all mandatory provider-specific fields to avoid validation failures.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-rohitg00-k8s-capi": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution
Related Skills
k8s-certs
Kubernetes certificate management with cert-manager. Use when managing TLS certificates, configuring issuers, or troubleshooting certificate issues.
k8s-autoscaling
Configure Kubernetes autoscaling with HPA, VPA, and KEDA. Use for horizontal/vertical pod autoscaling, event-driven scaling, and capacity management.
k8s-multicluster
Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle.
k8s-backup
Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.
k8s-browser
Browser automation for Kubernetes dashboards and web UIs. Use when interacting with Kubernetes Dashboard, Grafana, ArgoCD UI, or other web interfaces. Requires MCP_BROWSER_ENABLED=true.