Skip to main content

Build Kubernetes Operators with Familiar Tools

Create custom resource operators using familiar tools like Helm, Terraform, OpenTofu, CDK8s and Winglang. Turn your infrastructure code into Kubernetes native resources in minutes.

npm install -g @kblocks/cli
kblock.yaml
apiVersion: kblocks.io/v1
kind: Block
spec:
engine: tofu
definition:
description: An Amazon SQS queue
icon: heroicon://queue-list
readme: ./README.md
schema: src/values.schema.json
outputs:
- queueUrl
group: example.com
version: v1
kind: Queue
plural: queues
singular: queue
operator:
envSecrets:
AWS_DEFAULT_REGION: aws-credentials
AWS_ACCESS_KEY_ID: aws-credentials
AWS_SECRET_ACCESS_KEY: aws-credentials
metadata:
name: queues.example.com

How does Kblocks work?

You can create a new block in six simple steps.

1

Define API

Define the block API through a JSON Schema.

2

Choose Engine

Select your preferred engine (Helm, Terraform, OpenTofu, Winglang, etc.)

3

Implement Logic

Write your block logic using the engine's native language.

4

Build Operator

Run kb build to create a deployable Kubernetes operator.

5

Deploy

Install the operator to your Kubernetes cluster using Helm.

6

Done!

Your cluster now has a new custom resource ready to use.

Install Kblocks now

Kblocks is installed by running one of the following commands in your terminal.

npm install -g @kblocks/cli

Want to learn more before getting started? Take your time to read the documentation first.