repair
is an standalone tool to detect problematic nodes in a cluster and
repair them. It is built on top of the Cluster API, and is an example of tooling
that can be built in a cloud-agnostic way.
$ cd $GOPATH/src/sigs.k8s.io/
$ git clone https://github.com/kubernetes-sigs/cluster-api
$ cd cluster-api/tools/repair
$ go build
- Create a cluster using the
gcp-deployer
tool. - To do a dry run of detecting broken nodes and seeing what needs to be
repaired, run
./repair --dryrun true
. - To actually repair the nodes in cluster, run
./repair
without the--dryrun
flag.