File tree Expand file tree Collapse file tree
lb-http-body-health-check
lb-http-status-health-check
lb-tcp-connection-health-check
lb-with-multiple-http-https-ports Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040
4141 echo "Nodebalancer ID: $nbid"
4242
43- for i in {1..10 }; do
43+ for i in {1..20 }; do
4444 nbconfig=$(curl -s \
4545 -H "Authorization: Bearer $LINODE_TOKEN" \
4646 -H "Content-Type: application/json" \
Original file line number Diff line number Diff line change 3939 nbid=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
4040 echo "Nodebalancer id: $nbid"
4141
42- for i in {1..10 }; do
42+ for i in {1..20 }; do
4343 nbconfig=$(curl -s \
4444 -H "Authorization: Bearer $LINODE_TOKEN" \
4545 -H "Content-Type: application/json" \
Original file line number Diff line number Diff line change 4040
4141 echo "Nodebalancer ID: $nbid"
4242
43- for i in {1..10 }; do
43+ for i in {1..20 }; do
4444 nbconfig=$(curl -s \
4545 -H "Authorization: Bearer $LINODE_TOKEN" \
4646 -H "Content-Type: application/json" \
Original file line number Diff line number Diff line change 4040
4141 echo "Nodebalancer ID: $nbid"
4242
43- for i in {1..10 }; do
43+ for i in {1..20 }; do
4444 nbconfig=$(curl -s \
4545 -H "Authorization: Bearer $LINODE_TOKEN" \
4646 -H "Content-Type: application/json" \
Original file line number Diff line number Diff line change 5454 kubectl annotate svc svc-test -n $NAMESPACE service.beta.kubernetes.io/linode-loadbalancer-nodebalancer-id=$nbid
5555 sleep 5
5656
57- for i in {1..10 }; do
57+ for i in {1..20 }; do
5858 nbid2=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
5959
6060 if [[ $nbid == $nbid2 ]]; then
Original file line number Diff line number Diff line change 7474 IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
7575 echo "loadbalancer ip: $IP"
7676
77- for i in {1..10 }; do
77+ for i in {1..20 }; do
7878 port_80=$(curl -s $IP:80 | grep "test-" || true)
7979 port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)
8080
Original file line number Diff line number Diff line change 6666 IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
6767 echo "loadbalancer ip: $IP"
6868
69- for i in {1..10 }; do
69+ for i in {1..20 }; do
7070 port_80=$(curl -s $IP:80 | grep "test-" || true)
7171 port_8080=$(curl -s $IP:8080 | grep "test-" || true)
7272 port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true)
Original file line number Diff line number Diff line change 7777 nbid=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
7878 echo "Nodebalancer ID: $nbid"
7979
80- for i in {1..10 }; do
80+ for i in {1..20 }; do
8181 nbconfig=$(curl -s \
8282 -H "Authorization: Bearer $LINODE_TOKEN" \
8383 -H "Content-Type: application/json" \
You can’t perform that action at this time.
0 commit comments