jwyx3 / k8s-p

personal practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k8s-practices

links

steps

> cd $GOPATH/src/k8s-practices
> touch boilerplate.go.txt
> apiserver-boot init repo --domain jw.io

> apiserver-boot create group version resource --group insect --version v1beta1 --kind Bee

> apiserver-boot build generated # run the code generators and build the executables
> apiserver-boot build executables
> apiserver-boot build docs # generate doc

> apiserver-boot run local # run locally
> kubectl --kubeconfig kubeconfig api-versions
> kubectl --kubeconfig kubeconfig create -f sample/bee.yaml
> go test ./pkg/... # run test case

> # run in minikube
> kubectl create ns insect
> apiserver-boot build config --local-minikube --name insect --namespace insect
> kubectl create -f config/apiserver.yaml
> apiserver-boot run local-minikube # aggregated with the minikube cluster

> apiserver-boot build container # cross-compile the go binaries into a container image
> apiserver-boot build config # emit yaml configuration for running the apiserver, controller-manager and etcd in a cluster

store_reconcile storage reconciliation End to end Deployment example Deployment

About

personal practice


Languages

Language:Go 99.9%Language:Python 0.1%