Skip to content

Commit

Permalink
Merge pull request #388 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - fixed kernel version for u22 cicd
  • Loading branch information
UltraInstinct14 authored Sep 6, 2023
2 parents e791d13 + 09276c8 commit a97c307
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cicd/k8s-calico-ubuntu22/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ workers = settings["nodes"]["workers"]["count"]

Vagrant.configure("2") do |config|

if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end

config.vm.define "loxilb" do |loxilb|
loxilb.vm.box = settings["software"]["loxilb"]["box"]
loxilb.vm.hostname = 'llb1'
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ubuntu22/node_scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ EOF
sudo systemctl daemon-reload
sudo systemctl enable crio --now

echo "CRI runtime installed susccessfully"
echo "CRI runtime installed successfully"

sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl
Expand Down
8 changes: 6 additions & 2 deletions cicd/k8s-calico-ubuntu22/node_scripts/loxilb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --net=host --name loxilb ghcr.io/loxilb-io/loxilb:latest
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/
sudo ubuntu-mainline-kernel.sh -i v5.19.17
sudo docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --net=host --name loxilb ghcr.io/loxilb-io/loxilb:latestu22
echo alias loxicmd=\"sudo docker exec -it loxilb loxicmd\" >> ~/.bashrc
echo alias loxilb=\"sudo docker exec -it loxilb \" >> ~/.bashrc

echo $LOXILB_IP > /vagrant/loxilb-ip
sudo reboot

0 comments on commit a97c307

Please sign in to comment.