Open laik opened 3 years ago
apiserver-boot init repo --domain example.com
apiserver-boot create group version resource --group insect --version v1beta1 --kind Bee
apiserver-boot build executables
go test ./pkg/...
apiserver-boot run local
kubectl --kubeconfig kubeconfig api-versions
apiserver-boot run in-cluster --name creatures --namespace default --image repo/name:tag,
// example
apiserver-boot init repo --domain lizhi.fm
apiserver-boot create group version resource --group vm --version v1 --kind VirtualMachine
./bin/apiserver --secure-port 8443 --etcd-servers http://127.0.0.1:2379 --v=7 \ --kubeconfig ~/.kube/config \ --authentication-kubeconfig ~/.kube/config \ --authorization-kubeconfig ~/.kube/config
https://jeremyxu2010.github.io/2019/07/%E4%BD%BF%E7%94%A8aggregated-apiserver%E7%9A%84%E6%96%B9%E5%BC%8F%E6%9E%84%E5%BB%BAapi%E6%9C%8D%E5%8A%A1/
apiserver-boot init repo --domain example.com
Create new resource "Bee" in the "insect" group with version "v1beta1"
apiserver-boot create group version resource --group insect --version v1beta1 --kind Bee
Build the generated code, apiserver and controller-manager so they be run locally.
apiserver-boot build executables
Run the tests that were created for your resources
Requires generated code was already built by "build executables" or "build generated"
go test ./pkg/...
Run locally by starting a local etcd, apiserver and controller-manager
Produces a kubeconfig to talk to the local server
apiserver-boot run local
Check the api versions of the locally running server
kubectl --kubeconfig kubeconfig api-versions
Build an image and run in a cluster in the default namespace
Note: after running this you should clear the discovery service
cache before running kubectl with "rm -rf ~/.kube/cache/discovery/"
apiserver-boot run in-cluster --name creatures --namespace default --image repo/name:tag,
// example
apiserver-boot init repo --domain lizhi.fm
apiserver-boot create group version resource --group vm --version v1 --kind VirtualMachine
./bin/apiserver --secure-port 8443 --etcd-servers http://127.0.0.1:2379 --v=7 \ --kubeconfig ~/.kube/config \ --authentication-kubeconfig ~/.kube/config \ --authorization-kubeconfig ~/.kube/config
https://jeremyxu2010.github.io/2019/07/%E4%BD%BF%E7%94%A8aggregated-apiserver%E7%9A%84%E6%96%B9%E5%BC%8F%E6%9E%84%E5%BB%BAapi%E6%9C%8D%E5%8A%A1/