Home Explore Blog CI



kubernetes

9th chunk of `content/en/blog/_posts/2016-08-00-Create-Couchbase-Cluster-Using-Kubernetes.md`
024066a360b9086c5e577d32798b6d607f328ded4cfabaab0000000100000555
![](https://lh4.googleusercontent.com/a6-OinZVl2Ij_fnIswNI1TWbbRgkG-KIlfPSaIrGSm36i0GS0Uk0CjcqEW64jGydDE4EpuYC4kaOkSbHi6-3kbwdngRyP-qZMOkM3jpf4dZrhJJ0qHgxUp9GcItUOnR5MzuGQ7kF)





**Scale Couchbase cluster**


Now, let’s scale the Couchbase cluster by scaling the replicas for worker RC:


```
kubectl scale rc couchbase-worker-rc --replicas=3  
replicationcontroller "couchbase-worker-rc" scaled
 ```





Updated state of RC shows that 3 worker pods have been created:



```
kubectl get rc  
NAME                  DESIRED   CURRENT   AGE  
couchbase-master-rc   1         1         8m  
couchbase-worker-rc   3         3         2m
 ```





This can be verified again by getting the list of pods:

```
kubectl get po  
NAME                        READY     STATUS    RESTARTS   AGE  
couchbase-master-rc-97mu5   1/1       Running   0          8m  
couchbase-worker-rc-4ik02   1/1       Running   0          2m  
couchbase-worker-rc-jfykx   1/1       Running   0          53s  
couchbase-worker-rc-v8vdw   1/1       Running   0          53s
 ```



Pending Rebalance tab of Couchbase Web Console shows that 3 servers have now been added to the cluster and needs to be rebalanced.



 ![](https://lh4.googleusercontent.com/WhruCJSzQs3HpqxcklPGe7vqHQ8Ie1XUZk88vZxrngLcgRowT3Kj_-abNPOQ3t_Jzt-pi6Gn2PGXsncAnh6TGdQr71T1pls7FfgszjTJojf72Wk-Aq-obgf1WslrEvjK0gTLmS0W)

Title: Scaling the Couchbase Cluster by Scaling the Worker RC Replicas
Summary
The Couchbase cluster is scaled by increasing the number of replicas for the worker RC to 3. The updated state of the RC and the list of pods are verified using `kubectl get rc` and `kubectl get po`, respectively, confirming that 3 worker pods have been created. The Couchbase Web Console reflects the addition of 3 servers, indicating that a rebalance is pending.