step by step, we can follow it.
Install apiserver-builder (go dep FAQ)
go env |grep GOPATH >> ~/.profile go env |grep GOROOT >> ~/.profile echo "export GOPATH" >> ~/.profile source ~/.profile git clone https://github.com/kubernetes-incubator/apiserver-builder.git cp ../apiserver-builder $GOPATH/src -r go get -v -u github.com/golang/dep/cmd/dep go get github.com/kubernetes-incubator/apiserver-builder cd $GOPATH/src/github.com/kubernetes-incubator/apiserver-builder dep ensure make install make build tar -zxvf apiserver-builder-*-linux-amd64.tar.gz -C $GOPATH 必须使用tar包安装 # wget https://github.com/kubernetes-incubator/apiserver-builder/archive/v1.9-alpha.4.tar.gz
Create code repo
git config --global user.email "lvmxh@126.com"
git config --global user.name "Mxh"
mkdir -p $GOPATH/src/github.com/my-org/my-project cd $GOPATH/src/github.com/my-org/my-project apiserver-boot init repo --domain mydomain git init git add BUILD.bazel Gopkg.lock Gopkg.toml WORKSPACE boilerplate.go.txt cmd/ pkg/ vendor/ git commit -m "code init" apiserver-boot create group version resource --group batch --version v1 --kind Dog git add docs/ pkg/apis/batch/ pkg/controller/dog/ pkg/controller/sharedinformers/informers.go sample/ git commit -m "add dog API"
guess:
GetStandardStorage 应该是获得etc2/etc3