Skip to content

Commit

Permalink
improved performance of verifying metallb functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
keeyzar committed Dec 20, 2020
1 parent ff9d3c9 commit fdd70bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script-files/install-metallb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ works=0
echo "checking whether or not load balancer is accessible"
curl --connect-timeout 10 "$external_ip" > /dev/null 2>&1 && works=1

echo "deleting "
kubectl delete pod nginx
kubectl delete service nginx
echo "deleting pod and service in background"
kubectl delete pod nginx > /dev/null 2>&1 &
kubectl delete service nginx > /dev/null 2>&1 &

if [[ $works -eq 1 ]]; then
echo "metallb works"
Expand Down

0 comments on commit fdd70bf

Please sign in to comment.