Skip to content

Instantly share code, notes, and snippets.

@zzOzz
Created March 10, 2017 14:54
Show Gist options
  • Save zzOzz/38a4270e8e6c7d1ed22e6d0d26d07b5d to your computer and use it in GitHub Desktop.
Save zzOzz/38a4270e8e6c7d1ed22e6d0d26d07b5d to your computer and use it in GitHub Desktop.
kubectl get replicaset -o json|jq '.items[]|select(.status.replicas == 1)|.metadata.name' -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment