gcluster job config

NAME

gcluster job config - manages configuration for the gcluster job command group.

SYNOPSIS

gcluster job config COMMAND [FLAGS]

DESCRIPTION

The gcluster job config command lets you view and modify persistent configuration properties for the gcluster job command group, such as default cluster, project, and location.

COMMANDS

COMMAND is one of the following:

set [KEY VALUE]
Sets a configuration property. Supported keys are project, cluster, and location. Running the gcluster job config set command without arguments opens the system default editor, such as nano or vim.
show
Shows all persistent configuration properties.
unset KEY
Clears a saved configuration default. Supported keys are project, cluster, location, and all.

PERSISTENT FLAGS

These flags are available to all gcluster job commands:

  • -c, --cluster CLUSTER_NAME: The name of the Google Kubernetes Engine (GKE) cluster or Kubernetes kubeconfig context. Optional in Kubernetes mode when the current-context field is set.
  • -l, --location LOCATION: The location, either a region or a zone, of the GKE cluster (GKE only).
  • -p, --project PROJECT_ID: The Google Cloud project ID (GKE only).
  • --gke-namespace NAMESPACE: The target Kubernetes namespace for the operation. If you omit this flag, then the gcluster CLI detects the namespace automatically.
  • --skip-prereqs: Skips local environment prerequisite checks, such as kubectl and gcloud checks, and container registry authentication for Crane builds.

EXAMPLES

To set a default project, cluster, and location:

gcluster job config set project my-project
gcluster job config set cluster my-cluster
gcluster job config set location us-central1-a

To display all persistent configuration properties:

gcluster job config show

To clear all saved configuration defaults:

gcluster job config unset all

To edit configuration interactively in the system default editor:

gcluster job config set