Skip to content

apiserver-builder implements libraries and tools to quickly and easily build Kubernetes apiservers to support custom resource types

License

Notifications You must be signed in to change notification settings

klustria/apiserver-builder

 
 

Repository files navigation

apiserver-builder

Build Status Go Report Card

Note: This project is still only a proof of concept, and is not production ready.

Apiserver Builder is a collection of libraries and tools to build native Kubernetes extensions using Kubernetes apiserver code.

Motivation

Addon apiservers are a Kubernetes extension point allowing fully featured Kubernetes APIs to be developed on the same api-machinery used to build the core Kubernetes APIS, but with the flexibility of being distributed and installed separately from the Kubernetes project. This allows APIs to be developed outside of the Kubernetes repo and installed separately as a package.

Building addon apiservers directly on the raw api-machinery libraries requires non-trivial code that must be maintained and rebased as the raw libraries change. The goal of this project is to make building apiservers in Go simple and accessible to everyone in the Kubernetes community.

apiserver-builder provides libraries, code generators, and tooling to make it possible to build and run a basic apiserver in an afternoon, while providing all of the hooks to offer the same capabilities when building from scratch.

Highlights

  • Tools to bootstrap type definitions, controllers, tests and documentation for new resources
  • Tools to build and run the extension control plane standalone and in minikube and remote clusters.
  • Easily watch and update Kubernetes API types from your controller
  • Easily add new resources and subresources
  • Provides sane defaults for most values, but can be overridden

Guides

Note: The guides are presented roughly in the order of recommended progression.

Installation guide

Download the latest release and install on your PATH.

installation guide

Building APIs concept guide

Conceptual information on how APIs and the Kubernetes control plane is structure and how to build new API extensions using apiserver-builder.

If you want to get straight to building something without knowing all the details of what is going on, skip ahead to the tools guide and come back to this later.

api building concept guide

Tools user guide

Instructions on how to use the tools packaged with apiserver-builder to build and run a new apiserver.

tools guide

Step by step example

List of commints showing apiserver-boot commands run and the corresponding changes:

https://github.com/kubernetes-incubator/apiserver-builder/commits/example-simple

Coding and libraries user guide

Instructions for how to implement custom APIs on top of the apiserver-builder libraries.

libraries guide

Concept guides

Conceptual information on addon apiservers, such as how auth works and how they interact with the main Kubernetes API server and API aggregator.

Concepts

Additional material

Using delegated auth with minikube

Instructions on how to run an apiserver using delegated auth with a minikube cluster

Details here

About

apiserver-builder implements libraries and tools to quickly and easily build Kubernetes apiservers to support custom resource types

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 86.9%
  • Python 10.7%
  • Makefile 1.6%
  • Shell 0.8%