1- Note that cluster-api effort is still in the prototype stage. All the code here is for experimental and demo-purpose, and under rapid change.
1+ ## What is cluster-api
22
3- ### How to build
3+ It's a declarative way to create, configure, and manage a cluster. It provides an optional, additive functionality on
4+ top of core Kubernetes.
5+
6+ Note that cluster-api effort is still in the prototype stage. All the code here is for experimental and demo-purpose,
7+ and under rapid change.
8+
9+ ## How is it implemented
10+ We use custom resource type (CRD) to model new machine and cluster object. Just like other resources in kubernetes,
11+ a [ machine controller] ( machine-controller/README.md ) is running as regular pod to reconcile the actual machine state vs desired state.
12+
13+ ## How to run
14+ ### Prerequisite
15+
16+ * ` kubectl ` is required, see [ here] ( http://kubernetes.io/docs/user-guide/prereqs/ ) .
17+ * ` Google Cloud SDK ` is installed if you are creating cluster on GCP, see [ here] ( https://cloud.google.com/sdk/downloads ) .
18+ * You need to have an account on Google Cloud Platform which have enough quota for the resource.
419
20+ ### How to build
521``` bash
622$ cd $GOPATH /src/k8s.io/
723$ git clone
[email protected] :kubernetes/kube-deploy.git
@@ -10,10 +26,19 @@ $ go build
1026```
1127
1228### How to run
29+
13301 ) Follow steps mentioned above and build cluster-api.
14312 ) Update cluster.yaml with cluster name.
15323 ) Update machines.yaml with google cloud project name.
16334 ) Run ` gcloud auth application-default login ` to get default credentials.
17345 ) Create cluster: ` ./cluster-api create -c cluster.yaml -m machines.yaml `
18356 ) Add new nodes: update new-machines.yaml with cloud project name and run ` ./cluster-api add -m new-machines.yaml `
19- 7 ) Delete cluster: ` ./cluster-api delete `
36+ 7 ) Delete cluster: ` ./cluster-api delete `
37+
38+ ### How to use the API
39+
40+ To see how we can use API to build toolings on top of cluster API, please check out a few examples below.
41+
42+ * [ Upgrade] ( upgrader/README.md )
43+ * [ Repair] ( repair/README.md )
44+ * [ Scaling] ( examples/machineset/README.md )
0 commit comments