Implement an Aggregated Apiserver for Simple Resources
Explore how to build a custom aggregated API server for Kubernetes using the apiserver-boot scaffold. Learn to define new resource kinds, add validation, implement reconciliation controllers, and deploy the server. Gain hands-on experience creating and managing simple custom Kubernetes resources efficiently.
We'll cover the following...
Overview
Building an aggregated apiserver from scratch is hard. Luckily, we’ve got a development kit apiserver-boot, which is shipped by the Kubernetes SIGs community. With this tool, we can easily build our own scaffold project. Below is the scaffold project pwk that we built using the apiserver-boot.
apiVersion: bar.pwk.educative.io/v1beta1 kind: Foo metadata: name: demo-foo namespace: default spec: replicas: 101
Now, let’s implement our own aggregated apiserver building on the top of this scaffold project.
In this lesson, we’re going to define a new API kind Foo served by the aggregated apiserver, and we will have a controller to reconcile the Foo kind objects.
To get started, hit the “Run” button to initialize our development environment in the terminal above.