This document describes how to run an apiserver and controller-manager in locally but using API aggregation with a local minikube cluster.
Make sure your repo is setup
- Install minikube and start a new cluster
- Create a new GO project
- In the GO project init the repo with
apiserver-boot init
- Create a resource with
apiserver-boot create group version resource
Make sure you are using a cluster at least 1.7.5
minikube start
apiserver-boot build config --local-minikube --name <servicename> --namespace <namespace to run in>
kubectl create -f config/apiserver.yaml
apiserver-boot run local-minikube
If you have Bazel & Gazelle
installed, you can use the --bazel
and --gazelle
to build your binaries. (Much faster!)