Deploy a cluster with blueprints

This document explains how to provision your cluster resources and view help for command-line usage. You can use the gcluster command-line tool to deploy, review, and monitor your configured infrastructure blueprints on Google Cloud.

Before you begin

  1. If you are using a Linux or macOS workstation to deploy your cluster, then follow install dependencies .
  2. From either your workstation or Cloud Shell, configure your environment .
  3. Verify that you have created a cluster blueprint or selected one from the Cluster Toolkit blueprint catalog .

Deploy the cluster

To deploy your cluster using a blueprint, complete the following steps:

  1. Switch to the main Cluster Toolkit working directory:

      cd 
      
    cluster-toolkit 
    
  2. Deploy the cluster using the gcluster deploy command:

    • To deploy using command-line variables:

       ./gcluster  
      deploy  
      --vars  
       project_id 
       = 
       PROJECT_ID 
        
       PATH_TO_BLUEPRINT_FILE 
       
      
    • To deploy with a deployment file :

       ./gcluster  
      deploy  
      -d  
       PATH_TO_DEPLOYMENT_FILE 
        
       PATH_TO_BLUEPRINT_FILE 
       
      

    Replace the following:

    • PROJECT_ID : The unique identifier for your target Google Cloud project.
    • PATH_TO_BLUEPRINT_FILE : The relative or absolute path to your cluster blueprint file.
    • PATH_TO_DEPLOYMENT_FILE : The path to your cluster deployment configuration file.
  3. The gcluster command reports proposed changes for your cluster. To continue the deployment, accept the proposed changes by pressing a , and then pressing Enter . Optionally, you can review the proposed changes by pressing d , and then pressing Enter .

     Summary of proposed changes: Plan: 37 to add, 0 to change, 0 to destroy.
    (D)isplay full proposed changes,
    (A)pply proposed changes,
    (S)top and exit,
    (C)ontinue without applying
    Please select an option [d,a,s,c]: a 
    
  4. After accepting the changes, gcluster runs terraform apply automatically. This operation takes approximately five minutes while it displays progress. If the run is successful, the output is similar to the following:

     Apply complete! Resources: 37 added, 0 changed, 0 destroyed. 
    

Get command-line help

To view all available flags and commands, run the --help flag:

 ./gcluster  
--help
./gcluster  
deploy  
--help 

What's next

Create a Mobile Website
View Site in Mobile | Classic
Share by: