NAME
gcluster job list - lists workloads in the cluster.
SYNOPSIS
gcluster job list [FLAGS]
DESCRIPTION
The gcluster job list command lists JobSet and standalone batch/v1 Job
workloads running or scheduled in a Google Kubernetes Engine (GKE) or Kubernetes
cluster.
FLAGS
--status STATUS: Filters jobs by status, such asPending,Running,Succeeded,Failed, orSuspended. ForJobSetworkloads, thegcluster job listcommand derives the status from theJobSetresource:Suspendedwhile queued in Kueue,Runningafter admission,Succeeded, orFailed. Standalonebatch/v1IndexedJobworkloads can also reportPendingbefore Pods become active.--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 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 list all jobs in a cluster:
gcluster job list \
--project=my-project \
--cluster=my-cluster \
--location=us-central1-a
To list only jobs with status Running:
gcluster job list \
--project=my-project \
--cluster=my-cluster \
--location=us-central1-a \
--status=Running