Skip to content

Instantly share code, notes, and snippets.

View ashok133's full-sized avatar

Ashok Patel ashok133

View GitHub Profile
@drubin
drubin / cordon-drain-pool
Last active May 3, 2022 14:21
Cordon and Drain GKE Node pools
#!/bin/bash -e
# Cordons and drains a node pool
display_usage() {
echo "Cordons and drains a nodepool"
echo -e "\nUsage:\n ./cordon-drain-pool [nodepool-name] "
echo -e " ./cordon-drain-pool pool-1 \n"
}
if [ $# -le 1 ]
then