Skip to content

Instantly share code, notes, and snippets.

@danistrebel
Last active February 18, 2020 06:53
Show Gist options
  • Save danistrebel/1604aa1dd2ebda1e11f77a30d63ee659 to your computer and use it in GitHub Desktop.
Save danistrebel/1604aa1dd2ebda1e11f77a30d63ee659 to your computer and use it in GitHub Desktop.
kubectl get po -o=jsonpath="{range .items[*]}{.metadata.namespace}, {.metadata.name}{'\n'}{range .spec.containers[*]}{'\t'}{.name}, {.resources.requests.cpu}, {.resources.limits.cpu}, {.resources.requests.memory}, {.resources.limits.memory}{'\n'}{end}{'\n'}{end}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment