Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created March 17, 2020 10:57
Show Gist options
  • Save BenSlabbert/4075f94ae4ecf1a983aa9933c495bc6d to your computer and use it in GitHub Desktop.
Save BenSlabbert/4075f94ae4ecf1a983aa9933c495bc6d to your computer and use it in GitHub Desktop.
returns the number of pocs that can be scheduled on a k8s node
#!/bin/bash
kubectl get nodes -o json | jq -r .items[].status.allocatable.pods | paste -sd+ - | bc
@BenSlabbert
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment