Skip to content

Instantly share code, notes, and snippets.

@burdzwastaken
Last active October 29, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burdzwastaken/0f1dcedc68a787aa87679dda2335ea5d to your computer and use it in GitHub Desktop.
Save burdzwastaken/0f1dcedc68a787aa87679dda2335ea5d to your computer and use it in GitHub Desktop.
#!/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