mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Delete any created load balancers in guestbook.sh
This commit is contained in:
parent
37bfb0d7cf
commit
9821c7f678
@ -37,6 +37,10 @@ GUESTBOOK="${KUBE_ROOT}/examples/guestbook"
|
||||
|
||||
function teardown() {
|
||||
${KUBECTL} stop -f "${GUESTBOOK}"
|
||||
if [[ "${KUBERNETES_PROVIDER}" == "gce" ]]; then
|
||||
gcloud compute forwarding-rules delete "${INSTANCE_PREFIX}-default-frontend" || true
|
||||
gcloud compute target-pools delete "${INSTANCE_PREFIX}-default-frontend" || true
|
||||
fi
|
||||
}
|
||||
|
||||
prepare-e2e
|
||||
|
Loading…
Reference in New Issue
Block a user