NAME
gcluster deploy - deploys all resources in a Cluster Toolkit
deployment directory or directly from a blueprint file.
SYNOPSIS
gcluster deploy {DEPLOYMENT_DIRECTORY | BLUEPRINT_FILE} [FLAGS]
DESCRIPTION
The gcluster deploy command deploys all resources defined in a deployment
directory. If you provide a blueprint file instead of a deployment directory,
then Cluster Toolkit runs the equivalent of the
gcluster create command to
create the deployment directory first, and then deploys it. To destroy the
deployed resources, use the
gcluster destroy command.
FLAGS
-a,--artifacts ARTIFACTS_DIR: The directory where deployment artifacts are stored. If you omit this flag, then thegclusterCLI configures the directory automatically.--auto-approve: Automatically approves proposed changes without prompting.--json-output: Writes Terraform output to a JSON file instead of standard text output to the console.--parallelism N: Limits the number of concurrent Terraform operations. Specify an integer of0or greater:1or greater: passesNto Terraform and overrides theGCLUSTER_TERRAFORM_PARALLELISMenvironment variable.0or omitted: uses theGCLUSTER_TERRAFORM_PARALLELISMenvironment variable if set to a positive integer, or falls back to the Terraform default of10.
--skip GROUPS: A comma-separated list of group names to skip during deployment.--only GROUPS: A comma-separated list of group names to deploy exclusively. This flag can't be used with the--skipflag.--skip-gke-security-check: Bypasses the dynamic Google Kubernetes Engine (GKE) version security vulnerability check.
CREATE FLAGS
If you provide a BLUEPRINT_FILE argument, then the following
flags from the gcluster create
command are also available:
-o,--out OUTPUT_DIR: The directory where the deployment directory is created.-w,--overwrite-deployment: Lets you overwrite an existing deployment directory.--force: Forces an overwrite without prompting.-d,--deployment-file DEPLOYMENT_FILE: A deployment file to override blueprint variables and backend configuration.--vars VARS: A comma-separated list ofname=valuevariables to override YAML configuration.--backend-config BACKEND_CONFIG: A comma-separated list ofname=valuevariables to set Terraform backend configuration.-l,--validation-level LEVEL: Sets the validation level toERROR,WARNING, orIGNORE.--skip-validators VALIDATORS: A comma-separated list of validators to skip.--add-creator-label: Adds theghpc_creatorlabel with your account identity to the expanded blueprint. Turned on by default for@google.comaccounts. To turn off this label, pass the--add-creator-label=falseflag.
EXAMPLES
To deploy all resources in a deployment directory:
gcluster deploy ./my-deployment
To automatically approve and apply changes without prompting:
gcluster deploy ./my-deployment --auto-approve
To create and immediately deploy a cluster from a blueprint file:
gcluster deploy blueprint.yaml -o ./my-deployment --auto-approve
To deploy only a specific group within a multi-group deployment:
gcluster deploy ./my-deployment --only=primary-cluster