Last active
October 29, 2018 20:35
-
-
Save burdzwastaken/0f1dcedc68a787aa87679dda2335ea5d to your computer and use it in GitHub Desktop.
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 | |
set -e | |
for node in $( kubectl get nodes | grep none | cut -d " " -f1 ); do | |
kubectl taint nodes $node node-role.kubernetes.io/master="":NoSchedule | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment