Skip to content

Commit

Permalink
updating instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-gupta committed Aug 2, 2016
1 parent 9f029b4 commit df4d752
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions cluster/readme.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
= Couchbase Clustering on Kubernetes

The files in this directory can serve as an example of how to deploy a cluster on Kubernetes. Tested on GKE, Amazon as well as a self-deployed Kubernetes cluster.
The files in this directory can serve as an example of how to deploy a Couchbase Server cluster on Kubernetes. Tested on GKE, Amazon as well as a self-deployed Kubernetes cluster.

== Usage

It should be noted at the beginning that this setup depends on KubeDNS to be enabled and functional to successfully deploy.

. Create the image with `docker build -t $DESIRED_IMG_NAME .`
. Update all `.yml` files with your new image name if necessary. Existing image name would work as is otherwise.
. Create the master node with `kubectl create -f cluster-master.yml`. This file will provision a LoadBalancer for the WebUI of the master node as well.
. Create the master node:
+
```
kubectl create -f cluster-master.yml
```
+
This file will provision a LoadBalancer for the Web Console of the master node as well.
+
. Once the master is up and LB has been provisioned, connect to the WebUI by going to `$LOADBALANCER_IP:8091` in your browser
. Create either auto-rebalancing nodes or just attach the nodes to the cluster with one of the two worker files:
+
Expand All @@ -22,6 +27,12 @@ OR
kubectl create -f cluster-worker-rebalance.yml
```
. Scale workers with the normal scaling commands for Replication Controllers:
+
```
kubectl scale rc couchbase-worker-rebalance-rc --replicas=3
```

=== Build your own image

. Create the image with `docker build -t $DESIRED_IMG_NAME .`
. Update all `.yml` files with your new image name if necessary.

0 comments on commit df4d752

Please sign in to comment.