mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
AWS: Handle kube-down case where the LaunchConfig is dangling
Always query and attempt to delete the default launch-config
This commit is contained in:
parent
ec7c58edf1
commit
ec33089519
@ -1345,6 +1345,11 @@ function kube-down {
|
|||||||
done
|
done
|
||||||
echo "All instances deleted"
|
echo "All instances deleted"
|
||||||
fi
|
fi
|
||||||
|
if [[ -n $(${AWS_ASG_CMD} describe-launch-configurations --launch-configuration-names ${ASG_NAME} --query LaunchConfigurations[].LaunchConfigurationName) ]]; then
|
||||||
|
echo "Warning: default auto-scaling launch configuration ${ASG_NAME} still exists, attempting to delete"
|
||||||
|
echo " (This may happen if kube-up leaves just the launch configuration but no auto-scaling group.)"
|
||||||
|
${AWS_ASG_CMD} delete-launch-configuration --launch-configuration-name ${ASG_NAME} || true
|
||||||
|
fi
|
||||||
|
|
||||||
find-master-pd
|
find-master-pd
|
||||||
find-tagged-master-ip
|
find-tagged-master-ip
|
||||||
|
Loading…
Reference in New Issue
Block a user