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

gh-87 Fix for k8s flannel incluster with multus cicd #809

Merged
merged 1 commit into from
Sep 23, 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
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
Loading