Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - Enhanced k3s cicd #361

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions cicd/k3s-sctpmh/validation.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
source ../common.sh
source ../k3s_common.sh

echo "cluster-k3s: TCP & SCTP Multihoming combined"

if [ "$1" ]; then
Expand Down Expand Up @@ -113,3 +115,32 @@ else
echo "BFP trace -- "
exit 1
fi

## Check delete and readd service
kubectl $KUBECONFIG delete -f nginx-svc-lb1.yml
sleep 10
kubectl $KUBECONFIG apply -f nginx-svc-lb1.yml
sleep 10

# Wait for cluster to be ready
wait_cluster_ready_full

out=$($hexec user curl -s --connect-timeout 10 http://$extIP:55002)
if [[ ${out} == *"Welcome to nginx"* ]]; then
echo "cluster-k3s TCP service nginx-lb del+add (kube-loxilb) [OK]"
else
echo "cluster-k3s TCP service nginx-lb del+add (kube-loxilb) [FAILED]"
## Dump some debug info
echo "llb1 lb-info"
$dexec llb1 loxicmd get lb
echo "llb1 route-info"
$dexec llb1 ip route
echo "llb2 lb-info"
$dexec llb2 loxicmd get lb
echo "llb2 route-info"
$dexec llb2 ip route
echo "r1 route-info"
$dexec r1 ip route
exit 1
fi

Loading