talira

Kubebuilder

SDK for building Kubernetes APIs using CRDs

open sourceApache-2.0free

Kubebuilder is a framework and CLI for building Kubernetes APIs and operators in Go with custom resource definitions (CRDs), controllers and admission webhooks. It scaffolds a project, generates the CRD types and the reconcile loop, runs the controller against a cluster for testing, and produces a Dockerfile and manifests to publish it, built on the controller-runtime and controller-tools libraries the core Kubernetes APIs use. Plugins add optional scaffolding (the Deploy Image plugin, for example), and other tools use it as a library: Operator SDK builds on it. It's a Kubernetes SIG API Machinery subproject, written up in the Kubebuilder book.

Problems it solves

  • write a Kubernetes operator in Go without all the boilerplate
  • add my own custom resource type to a Kubernetes cluster with a controller behind it
  • scaffold a controller and its reconcile loop for a CRD
  • build an admission webhook that validates my custom resources

Features

  • scaffolds Go projects for Kubernetes operators
  • generates CRD types, controllers and admission webhooks
  • runs controllers against a cluster for testing
  • Dockerfile and manifests to publish the operator
  • plugin architecture for optional scaffolding
  • usable as a library by other tools

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known