Skip to content

Commit

Permalink
K8s-calico-ipvs3-ha failing in github CICD - fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-netlox committed Jan 5, 2024
1 parent ad8b2fe commit 2e5b519
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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

0 comments on commit 2e5b519

Please sign in to comment.