$ make manager
GO15VENDOREXPERIMENT="1" CGO_ENABLED=0 GOOS="" GOARCH="" go get sigs.k8s.io/controller-tools/cmd/controller-gen
/Users/yisa/Downloads/Github/GoProject/bin/controller-gen
............. 以下省略
# 通过 kind get clusters,验证本地已经有名为 chaos-mesh 的 kubernetes 运行
$ kind get clusters
chaos-mesh
# 通过 kubectl get nodes, 可以看到 chaos-mesh 由 1 个 master 节点组成,3个 worker 节点组成。
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
chaos-mesh-control-plane NotReady master 37s v1.12.8
chaos-mesh-worker NotReady <none> 15s v1.12.8
chaos-mesh-worker2 NotReady <none> 16s v1.12.8
chaos-mesh-worker3 NotReady <none> 15s v1.12.8
在 chaos-mesh 项目根目录执行:
kubectl apply -f manifests/crd.yaml
$ kubectl apply -f manifests/crd.yaml
customresourcedefinition.apiextensions.k8s.io/iochaos.pingcap.com created
customresourcedefinition.apiextensions.k8s.io/kernelchaos.pingcap.com created
customresourcedefinition.apiextensions.k8s.io/networkchaos.pingcap.com created
customresourcedefinition.apiextensions.k8s.io/podchaos.pingcap.com created
customresourcedefinition.apiextensions.k8s.io/timechaos.pingcap.com created