Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P8440
killallpods.sh
Active
Public
Actions
Authored by
Andrew
on Apr 25 2019, 10:58 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F28776550: raw.txt
Apr 25 2019, 10:58 PM
2019-04-25 22:58:04 (UTC+0)
Subscribers
None
#!/bin/bash
while
read
p
;
do
kubectl cordon
$p
done
<allworkers.txt
while
read
p
;
do
kubectl uncordon
$p
kubectl drain --delete-local-data --force
$p
done
<allworkers.txt
Event Timeline
Andrew
created this paste.
Apr 25 2019, 10:58 PM
2019-04-25 22:58:04 (UTC+0)
Log In to Comment