File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1818ITERATIONS=${ITERATIONS:- 1}
1919LB_IP=${1:- $(minikube kubectl -- get service my-loadbalancer-service -o jsonpath=' {.status.loadBalancer.ingress[0].ip}' )}
2020
21+
22+ dump_status (){
23+ minikube kubectl -- get pods -A -o wide
24+ minikube kubectl -- get service my-loadbalancer-service -o wide
25+ }
26+
2127# $1: URL
2228# $2: SRC_IP
2329get_pod (){
@@ -48,13 +54,15 @@ check_affinity(){
4854echo " Waiting for ${LB_IP} :80 to return a valid HTTP response..."
4955while [[ " $( get_pod ${LB_IP} :80 | grep my-nginx-deployment) " == " " ]]; do
5056 sleep 1
57+ dump_status
5158done
5259sudo ip netns exec client curl -s ${LB_IP} :80
5360
5461# Make sure service at 8080 is also reachable (no misconfigs)
5562echo " Waiting for ${LB_IP} :8080 to return a valid HTTP response..."
5663while [[ " $( get_pod ${LB_IP} :8080 | grep my-nginx-deployment) " == " " ]]; do
5764 sleep 1
65+ dump_status
5866done
5967sudo ip netns exec client curl -s ${LB_IP} :8080
6068
You can’t perform that action at this time.
0 commit comments