Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.08 KB

readme.adoc

File metadata and controls

48 lines (30 loc) · 1.08 KB

Couchbase on Kubernetes

Start Kubernetes cluster

export KUBERNETES_PROVIDER=aws
./cluster/kube-up.sh

Create Couchbase Service and Expose as LB

Create a Service, Replication Controller with 1 replica, and expose all of this as a Load Balancer

./cluster/kubectl.sh -f couchbase-service.yml

Couchbase Cluster

Implicitly (preferred)

Explicitly

  1. Create Couchbase Replication Controller with 2 replicas:

    ./cluster/kubectl.sh -f couchbase-rc.yml
  2. Get pods in the RC:

    ./kubernetes/cluster/kubectl.sh get po
  3. Get IP address of the two pods:

    ./kubernetes/cluster/kubectl.sh describe <pod-1>
    ./kubernetes/cluster/kubectl.sh describe <pod-2>
  4. 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