Skip to content

Instantly share code, notes, and snippets.

@nyrahul
Last active June 1, 2024 20:46
Show Gist options
  • Save nyrahul/b099e8df77ac9d83eec5bad21b27f1cf to your computer and use it in GitHub Desktop.
Save nyrahul/b099e8df77ac9d83eec5bad21b27f1cf to your computer and use it in GitHub Desktop.
Check cluster kueue job status
# Show all workloads/jobs
kubectl get workload -A -o json | jq '.items[] | "\(.metadata.namespace) \(.metadata.name) \(.status.conditions[-1].type)"'
# Show Admitted workloads/jobs
kubectl get workload -A -o json | jq -c '.items[] | select(.status.conditions[-1].type == "Admitted") | [.metadata.namespace,.metadata.name]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment