Skip to content

Latest commit

 

History

History

simple

simple

Deploying from the Command Line

To deploy from the command line you will need a GCP account and the glcoud tool installed. Instruction for installing the Google Cloud SDK that includes gcloud are here.

To set up your Google environment, run the command:

gcloud init

Now, you'll need a copy of this repo. To make a local copy, run the commands:

git clone https://github.com/couchbase-partners/google-deployment-manager-couchbase.git
cd google-deployment-manager-couchbase
cd simple

This repo countains four different parameters files. You can deploy with any of them using deploy.sh. For example, to deploy the simple configuration run the command:

./deploy.sh simple <some deployment name>

The script then passes the cluster configuration to GCP and builds your cluster automatically.

Accessing the Cluster

To access the cluster, open the Google cloud console, navigate to Compute Engine and pick a node. You can access Couchbase Server on port 8091 of the public IP of that node. Couchbase Sync Gateway is accessible on port 4984.

Deleting a Deployment

To delete a deployment, run the command:

gcloud deployment-manager deployments delete <some deployment name>