Skip to content

Commit

Permalink
Merge pull request #809 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
gh-87 Fix for k8s flannel incluster with multus cicd
  • Loading branch information
UltraInstinct14 authored Sep 23, 2024
2 parents 3e292e0 + 39ec30c commit 1aeeab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions cicd/k8s-flannel-incluster-multus/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ sudo sysctl net.ipv4.conf.vboxnet1.arp_accept=1
#vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/udp_fullnat.yml' 2> /dev/null
#vagrant ssh master -c 'kubectl apply -f /vagrant/yaml/sctp_fullnat.yml' 2> /dev/null

#Create multus services
vagrant ssh master -c 'kubectl apply -f /vagrant/multus/multus-pod.yml' 2> /dev/null
vagrant ssh master -c 'kubectl apply -f /vagrant/multus/multus-service.yml' 2> /dev/null

for((i=1; i<=60; i++))
do
fin=1
Expand Down
1 change: 1 addition & 0 deletions cicd/k8s-flannel-incluster-multus/node_scripts/master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ kubectl wait pod --all --for=condition=Ready --namespace=kube-flannel --timeout=
kubectl apply -f /vagrant/multus/multus-vlan.yml
sleep 60
kubectl apply -f /vagrant/yaml/loxilb.yaml
kubectl apply -f /vagrant/yaml/kube-loxilb.yaml
4 changes: 0 additions & 4 deletions cicd/k8s-flannel-incluster-multus/node_scripts/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ kubectl label node $(hostname -s) node-role.kubernetes.io/worker=worker
kubectl wait pod --all --for=condition=Ready --namespace=kube-system --timeout=240s >> /dev/null 2>&1 || true
kubectl wait pod --all --for=condition=Ready --namespace=default --timeout=240s >> /dev/null 2>&1 || true
kubectl wait pod --all --for=condition=Ready --namespace=kube-flannel --timeout=240s >> /dev/null 2>&1 || true
kubectl apply -f /vagrant/yaml/kube-loxilb.yaml
kubectl apply -f /vagrant/multus/multus-pod.yml
sleep 60
kubectl apply -f /vagrant/multus/multus-service.yml
EOF

Expand Down

0 comments on commit 1aeeab2

Please sign in to comment.