From a19f99ab96c8edbc5074638c67d3238c5e58af52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 10 Apr 2019 13:59:28 +0200 Subject: [PATCH] Update benchmark.sh --- benchmark/benchmark.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/benchmark/benchmark.sh b/benchmark/benchmark.sh index 7c1eaf6..daabc60 100644 --- a/benchmark/benchmark.sh +++ b/benchmark/benchmark.sh @@ -41,6 +41,14 @@ then cp $HOME/go/bin/hey /usr/local/bin fi +kubectl get pods --all-namespaces| grep Evicted | $(awk '{print "kubectl -n " $1 " delete pod "$2}') +kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml +kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml + +kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml +kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml + + echo -e "Benchmarking GET functions\n" for function in "${functions[@]}" do