NAME
gcluster job list - lists workloads (jobs) in the cluster.
SYNOPSIS
gcluster job list [FLAGS]
DESCRIPTION
The gcluster job list command lists workloads (jobs) running or scheduled in
the cluster.
FLAGS
--status STATUS: Filters jobs by status, such asPending,Running,Succeeded,Failed, orSuspended.--name-contains STRING: Filters jobs by name containing the specified string.
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 asgcloud,kubectl, anddockerauthentication.
EXAMPLES
To list all jobs in a cluster:
gcluster job list \
--cluster=my-cluster \
--location=us-central1-a
To list only jobs with status Running:
gcluster job list \
--cluster=my-cluster \
--location=us-central1-a \
--status=Running