Skip to content

Instantly share code, notes, and snippets.

@grrywlsn
Created December 10, 2018 10:54
Show Gist options
  • Save grrywlsn/5895e14049d05edc049294ba6d89d80e to your computer and use it in GitHub Desktop.
Save grrywlsn/5895e14049d05edc049294ba6d89d80e to your computer and use it in GitHub Desktop.
Get the name and version of every deployment in a namespace
kubectl get deployment -n production -o wide | awk '{n=split($8,A,":"); print $1 " " A[n]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment