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, andlocation. Running thegcluster job config setcommand without arguments opens the system default editor, such asnanoorvim. show- Shows all persistent configuration properties.
unset KEY- Clears a saved configuration default. Supported keys are
project,cluster,location, andall.
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 Kuberneteskubeconfigcontext. Optional in Kubernetes mode when thecurrent-contextfield 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 thegclusterCLI detects the namespace automatically.--skip-prereqs: Skips local environment prerequisite checks, such askubectlandgcloudchecks, 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