gcluster job inspect

NAME

gcluster job inspect - inspects cluster health and workload status.

SYNOPSIS

gcluster job inspect [FLAGS]

DESCRIPTION

The gcluster job inspect command inspects cluster health and workload status on GKE clusters.

FLAGS

  • --name NAME: The name of the specific workload to inspect.
  • -o, --output PATH: A custom path or filename to write logs to.
  • -s, --show: Prints output to the terminal in addition to the file.

PERSISTENT FLAGS

These flags are available to all gcluster job commands:

  • -c, --cluster CLUSTER_NAME: The name of the GKE cluster.
  • -l, --location LOCATION: The location, either a region or a zone, of the GKE cluster.
  • -p, --project PROJECT_ID: The Google Cloud project ID.
  • --gke-namespace NAMESPACE: The target GKE namespace for the operation.
  • --skip-prereqs: Skips local environment prerequisite checks, such as gcloud, kubectl, and docker authentication.

EXAMPLES

To inspect overall cluster health:

gcluster job inspect \
    --cluster=my-cluster \
    --location=us-central1-a

To inspect a specific workload named train-job and show output in the terminal:

gcluster job inspect \
    --cluster=my-cluster \
    --location=us-central1-a \
    --name=train-job \
    --show