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