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

K8s-calico-ipvs3-ha failing in github CICD - fixed #485

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions cicd/k8s-calico-ipvs3-ha/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,27 @@ vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/tcp_fullnat.yml' 2> /dev/n
vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/tcp_default.yml' 2> /dev/null
vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/sctp_fullnat.yml' 2> /dev/null
vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/sctp_default.yml' 2> /dev/null
for((i=1; i<=60; i++))
do
fin=1
pods=$(vagrant ssh master -c 'kubectl get pods -A' 2> /dev/null | grep -v "NAMESPACE")

while IFS= read -a pods; do
read -a pod <<< "$pods"
if [[ ${pod[3]} != *"Running"* ]]; then
echo "${pod[1]} is not UP yet"
fin=0
fi
done <<< "$pods"
if [ $fin == 1 ];
then
break;
fi
echo "Will try after 10s"
sleep 10
done
if [[ $fin == 0 ]]; then
echo "Cluster is not ready"
exit 1
fi
echo "Cluster is ready"
1 change: 1 addition & 0 deletions cicd/k8s-calico-ipvs3-ha/node_scripts/host.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Install Bird to work with k3s
sudo apt-get update
sudo apt-get -y install bird2 lksctp-tools iperf

sudo ip addr add 30.30.30.1/32 dev lo
Expand Down
Loading