Create a Service, Replication Controller with 1 replica, and expose all of this as a Load Balancer
./cluster/kubectl.sh -f couchbase-service.yml
-
Create Couchbase Replication Controller with 2 replicas:
./cluster/kubectl.sh -f couchbase-rc.yml
-
Get pods in the RC:
./kubernetes/cluster/kubectl.sh get po
-
Get IP address of the two pods:
./kubernetes/cluster/kubectl.sh describe <pod-1> ./kubernetes/cluster/kubectl.sh describe <pod-2>
-
Create the cluster and rebalance:
couchbase-cli rebalance --cluster=<pod-1-ip>:8091 --user Administrator --password password --server-add=<pod-2-ip> --server-add-username=Administrator --server-add-password=password