Last active
January 18, 2020 12:23
-
-
Save saiyam1814/923d94c60aeeefa6e175d54c2ae1fe18 to your computer and use it in GitHub Desktop.
change the kubelet max pods for all nodes
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
| kubectl get nodes --no-headers=true -owide | awk '{print $6}' | xargs | |
| arr=(iplist from above command) | |
| for a in "${arr[@]}"; do echo $a; ssh -o StrictHostKeyChecking=no -t app@$a "sudo /etc/kubernetes; sudo sed -i -e 's/max-pods=14/max-pods=24/g' kubelet.env ; sudo service kubelet restart"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment