Introduction
Kblocks is a framework for building Kubernetes custom resource operators using familiar infrastructure tools like Helm, Terraform, OpenTofu, CDK8s and Winglang.
How does it work?
To create a new block, all you need is:
- Define the block API through a JSON Schema.
- Choose the backing engine (e.g. Helm, Terraform, OpenTofu, Winglang, etc.)
- Implement the block logic in the engine's language (e.g. Helm templates, Terraform config)
- Run
kb buildto create an operator that can be deployed to a Kubernetes cluster. - Install the operator to your Kubernetes cluster through Helm.
- Done! Now your cluster has a new resource backed by Helm or Terraform.
Features
- Multiple Engines: Support for Helm, Terraform, OpenTofu, Wing and custom implementations
- Simple CLI: Easy-to-use command line interface for creating and managing blocks
- Schema Validation: Automatic validation of custom resource inputs
- Output Management: Structured handling of block outputs
- Kubernetes Native: Fully integrated with Kubernetes custom resources
- LLM-based Enrichment: Automatically create documentation and other resources with information from LLM