在本地运行 Kubernetes e2e 测试
安装 kubetest
https://github.com/kubernetes/test-infra/tree/master/kubetest#installation
1 | go install k8s.io/test-infra/kubetest |
或者
1 | GO111MODULE=on go install ./kubetest |
构建二进制
1 | kubetest --build |
启动本地集群
1 | ./hack/local-up-cluster.sh |
如果没有安装 etcd 需要先安装
1 | ./hack/install-etcd.sh |
使用 kubectl 访问