itechmeat/llm-code/k8s-cluster-api
Claude Code and agent skill by itechmeat/llm-code
- community
Checking that the SKILL.md file is still in the repository.
Kubernetes Cluster API v1.12. Covers clusterctl CLI, ClusterClass, GitOps integration. Scripts for health checks, backup, migration, linting. Templates: clusters, DR, Prometheus. Use when provisioning, upgrading, or operating Kubernetes clusters with CAPI, or running clusterctl and ClusterClass workflows. Keywords: CAPI, clusterctl, kubeadm, cluster lifecycle.
Install
npx vskill@latest install itechmeat/llm-code/k8s-cluster-apiSKILL.md
Kubernetes Cluster API
Kubernetes Cluster API (CAPI) is a Kubernetes sub-project focused on providing declarative APIs and tooling to simplify provisioning, upgrading, and operating multiple Kubernetes clusters.
Overview
Started by SIG Cluster Lifecycle, Cluster API uses Kubernetes-style APIs and patterns to automate cluster lifecycle management. The infrastructure (VMs, networks, load balancers, VPCs) and Kubernetes configuration are defined declaratively, enabling consistent and repeatable cluster deployments across environments.
Why Cluster API?
While kubeadm reduces installation complexity, it doesn't address day-to-day cluster management:
- How to consistently provision infrastructure across providers and locations?
- How to automate cluster lifecycle (upgrades, deletion)?
- How to scale processes to manage any number of clusters?
Cluster API addresses these gaps with declarative, Kubernetes-style APIs that automate cluster creation, configuration, and management.
Goals
- Manage lifecycle (create, scale, upgrade, destroy) of Kubernetes-conformant clusters via declarative API
- Work in different environments (on-premises and cloud)
- Define common operations with swappable implementations
- Reuse existing ecosystem components (cluster-autoscaler, node-problem-detector)
- Provide transition path for existing tools to adopt incrementally
Non-Goals
- Add APIs to Kubernetes core
- Manage infrastructure unrelated to Kubernetes clusters
- Force all lifecycle products to use these APIs
- Manage non-CAPI provisioned clusters
- Manage single cluster spanning multiple providers
- Configure machines after create/upgrade
Quick Navigation
| Topic | Reference | |
|---|---|---|
| Getting Started | getting-started.md | |
| Concepts & Architecture | concepts.md | |
| Certificates | certificates.md | |
| Bootstrap (Kubeadm/MicroK8s) | bootstrap.md | |
| Cluster Operations | cluster-operations.md | |
| Experimental Features | experimental.md | |
| clusterctl CLI | clusterctl.md | |
| Developer Guide | developer.md | |
| Troubleshooting | troubleshooting.md | |
| API Reference & Providers | api-reference.md | |
| Security & PSS | security.md | |
| Controllers | controllers.md | |
| Version Migrations | migrations.md | |
| FAQ | faq.md | |
| Best Practices | best-practices.md |
When to Use
- Provisioning Kubernetes clusters across multiple infrastructure providers
- Managing cluster lifecycle (create, scale, upgrade, destroy)
- Automating cluster operations with declarative APIs
- Implementing GitOps workflows for cluster management
- Building custom infrastructure providers
Core Concepts
Architecture
Key Components
| Component | Purpose | |
|---|---|---|
| Management Cluster | Hosts CAPI controllers, manages workloads | |
| Workload Cluster | User clusters managed by CAPI | |
| Infrastructure Provider | Provisions VMs, networks, load balancers | |
| Bootstrap Provider | Generates cloud-init/ignition configs | |
| Control Plane Provider | Manages control plane nodes lifecycle |
Core Resources
| Resource | Description | |
|---|---|---|
| Cluster | Represents a Kubernetes cluster | |
| Machine | Represents a single node/VM | |
| MachineSet | Manages replicas of Machines | |
| MachineDeployment | Declarative updates for MachineSets | |
| MachineHealthCheck | Automatic remediation of unhealthy nodes |
Quick Start
Common Workflows
Cluster Lifecycle
Health Monitoring
Critical Prohibitions
- Do NOT modify management cluster directly without proper backup
- Do NOT delete Machine objects directly (use MachineDeployment scale)
- Do NOT mix provider versions without checking compatibility
- Do NOT skip cluster upgrade steps (control plane before workers)
- Do NOT ignore MachineHealthCheck alerts
Release Highlights (1.14.x)
- Kubernetes compatibility moves to management clusters
v1.33.x -> v1.37.xand workload clustersv1.31.x -> v1.37.xby the1.14.1line. - API types move into a dedicated Golang module: stronger compatibility guarantees and a much smaller, tightly controlled dependency tree that reduces CVE exposure from transitive dependencies.
- Kubeadm control plane robustness: safe joining of worker nodes on older Kubernetes versions, improved forward etcd leadership during control plane machine deletion, and remediation of unhealthy machines during intermediate steps of chained upgrades.
- Observability: the upgrade plan is surfaced in cluster status, aggregated machine versions are exposed in status, and runtime extension errors appear in cluster conditions.
- Scale/performance: ClusterCache clients expose cache tuning options for a smaller memory footprint, and managedFields interning reduces stored state.
- Deprecation warning: the
v1beta1API is on track to be unserved in CAPIv1.16(migrate tov1beta2), andDocker*resources will be removed inv1.15(migrate toDev*resources). An experimentalclusterctl convertcommand is available. 1.14.3(2026-10-07) is a patch release and keeps the same Kubernetes support window (managementv1.33.x -> v1.37.x, workloadv1.31.x -> v1.37.x). Its fixes cover a KCP proxyDialContextrace, matching an etcd member to the machine the KCP is deleting, graceful handling of missing owner references for Machine/MachineSet, and setting the cluster-name label on Clusters created without a ClusterClass.
Release Highlights (1.13.x)
- Kubernetes compatibility moves to management clusters
v1.32.x -> v1.36.xand workload clustersv1.30.x -> v1.36.xby the1.13.2line. v1alpha3andv1alpha4API versions are now removed; providers should keep moving toward thev1beta2contract becausev1beta1remains on the path to becoming unserved in a later release.- Cluster topology can now drive
rolloutAfterfor both control plane andMachineDeploymentresources. - KubeadmControlPlane improves remediation tolerance for multiple failures and better surfaces common join/remediation symptoms.
PriorityQueueandReconcilerRateLimitingare now beta defaults in the1.13line, which can change reconciliation behavior under load.
Scripts
Go-based tools in scripts/. Run via go run ./tool-name from the scripts directory.
| Tool | Purpose | |
|---|---|---|
validate-manifests | Validate YAML manifests against CRD schemas | |
run-clusterctl-diagnose | Run clusterctl describe and save diagnostic report | |
migration-checker | Check v1beta1→v1beta2 migration readiness | |
check-cluster-health | Analyze conditions across all cluster objects | |
analyze-conditions | Parse and report False/Unknown conditions | |
scaffold-provider | Generate new provider directory structure | |
generate-cluster-template | Generate templates from ClusterClass | |
export-cluster-state | Export cluster state for backup/move | |
audit-security | Check PSS compliance and security posture | |
timeline-events | Build provisioning event timeline | |
compare-versions | Compare CAPI version specs and API changes | |
check-provider-contract | Verify provider CRD compliance with contracts | |
lint-cluster-templates | Lint and validate CAPI manifests |
Assets
Reusable templates in assets/:
- Cluster templates:
cluster-minimal.yaml,cluster-production.yaml,cluster-clusterclass.yaml,clusterclass-example.yaml - Provider configs:
docker-quickstart.yaml,aws-credentials.yaml,azure-credentials.yaml,provider-matrix.md - Operations:
upgrade-checklist.md,migration-v1beta2.md,troubleshooting-flow.md,security-audit-report.md,dr-backup-restore.md,etcd-backup.yaml - GitOps:
argocd-cluster-app.yaml,flux-kustomization.yaml,gitops-rbac.yaml - Monitoring:
prometheus-alerts.yaml
Links
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/k8s-cluster-api/SKILL.md
Popularity
- Repository stars
- 16
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itechmeat/llm-code/k8s-cluster-api)