machineset is an example client-side implementation of a MachineSet, which may
be included in the Cluster API in the future. It allows you to declaratively
scale a group of Machines identified by a label selector.
Building
$ cd $GOPATH/src/k8s.io/
$ git clone git@github.com:kubernetes/kube-deploy.git
$ cd kube-deploy/cluster-api/examples/machineset
$ go build
Running
Create a cluster using the cluster-api tool.
By default, the master and node Machines from machines.yaml have the
labels set=master and set=node, respectively.
To print out the Machines in a set, run ./machineset get set=node.
To scale the number of Machines up, run ./machineset scale set=node -r 3.
To scale them back down, run ./machineset scale set=node -r 1.
To see the full usage information, run ./machineset help.