Created
March 17, 2020 10:57
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| kubectl get nodes -o json | jq -r .items[].status.allocatable.pods | paste -sd+ - | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/a/56969305/4841710