mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Delete master route on kube-down
This commit is contained in:
parent
6319f8a568
commit
9b55e1f176
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user