mirror of https://github.com/k3s-io/k3s
Update README.md of sample-apiserver.
Mention CRDs as option. Link to CRD vs Aggr. docs. Mention apiserver-builder as alternative.pull/6/head
parent
456ebf5de7
commit
af4aec6976
|
@ -5,7 +5,13 @@ Demonstration of how to use the k8s.io/apiserver library to build a functional A
|
|||
|
||||
## Purpose
|
||||
|
||||
This is intended as an example of how to build a kube-like API server with a single type.
|
||||
You may use this code if you want to build an Extension API Server to use with API Aggregation, or to build a stand-alone Kubernetes-style API server.
|
||||
|
||||
However, consider two other options:
|
||||
* **CRDs**: if you just want to add a resource to your kubernetes cluster, then consider using Custom Resource Definition a.k.a CRDs. They require less coding and rebasing. Read about the differences between Custom Resource Definitions vs Extension API Servers [here](https://kubernetes.io/docs/concepts/api-extension/custom-resources).
|
||||
* **Apiserver-builder**: If you want to build an Extension API server, consider using [apiserver-builder](https://github.com/kubernetes-incubator/apiserver-builder) instead of this repo. The Apiserver-builder is a complete framework for generating the apiserver, client libraries, and the installation program.
|
||||
|
||||
If you do decide to use this repository, then the recommended pattern is to fork this repository, modify it to add your types, and then periodically rebase your changes on top of this repo, to pick up improvements and bug fixes to the apiserver.
|
||||
|
||||
|
||||
## Compatibility
|
||||
|
|
Loading…
Reference in New Issue