cd $GOPATH/src/k8s.io/kuberneteshack/local-up-cluster.sh
打开另外一个终端,配置 kubectl:
cd $GOPATH/src/k8s.io/kubernetescluster/kubectl.shgetpodscluster/kubectl.shgetservicescluster/kubectl.shgetreplicationcontrollerscluster/kubectl.shrunmy-nginx--image=nginx--port=80
$gogetsigs.k8s.io/kind# ensure that Kubernetes is cloned in $(go env GOPATH)/src/k8s.io/kubernetes# build a node image$kindbuildnode-image# create a cluster with kind build node-image$kindcreatecluster--imagekindest/node:latest