Skip to content

Commit

Permalink
fix: clean vip eip snat dant fip in cleanup.sh (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 authored Jul 13, 2022
1 parent c2cea88 commit 41bdcd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ for slr in $(kubectl get switch-lb-rule -o name); do
kubectl delete --ignore-not-found $slr
done

for vip in $(kubectl get vip -o name); do
kubectl delete --ignore-not-found $vip
done

for eip in $(kubectl get eip -o name); do
kubectl delete --ignore-not-found $eip
done

for snat in $(kubectl get snat -o name); do
kubectl delete --ignore-not-found $snat
done

for dnat in $(kubectl get dnat -o name); do
kubectl delete --ignore-not-found $dnat
done

for fip in $(kubectl get fip -o name); do
kubectl delete --ignore-not-found $fip
done

sleep 5

# Delete Kube-OVN components
Expand Down

0 comments on commit 41bdcd0

Please sign in to comment.