From 9b55e1f17698849b0586f152b643b966d0277870 Mon Sep 17 00:00:00 2001 From: Jeff Lowdermilk Date: Fri, 13 Mar 2015 11:00:19 -0700 Subject: [PATCH] Delete master route on kube-down --- cluster/gce/util.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 0b0349109b3b6..94b195172cab4 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -785,6 +785,7 @@ function kube-down { local -a routes routes=( $(gcloud compute routes list --project "${PROJECT}" \ --regexp "${NODE_INSTANCE_PREFIX}-.+" | awk 'NR >= 2 { print $1 }') ) + routes+=("${MASTER_NAME}") while (( "${#routes[@]}" > 0 )); do echo Deleting routes "${routes[*]::10}" gcloud compute routes delete \