Skip to content

Commit

Permalink
Merge pull request #593 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
cicd: microk8s single-node incluster scenario added
  • Loading branch information
UltraInstinct14 authored Mar 18, 2024
2 parents eea3d5a + 6afd700 commit 34c8bc4
Show file tree
Hide file tree
Showing 10 changed files with 942 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ For deploying telco-cloud with cloud-native functions, loxilb can be used as a S
#### loxilb as in-cluster pod
- [K3s : loxilb in-cluster mode](https://github.com/loxilb-io/loxilbdocs/blob/main/docs/k3s_quick_start_incluster.md)
- [K0s : loxilb in-cluster mode](https://github.com/loxilb-io/loxilbdocs/blob/main/docs/k0s_quick_start_incluster.md)
- [MicroK8s : loxilb in-cluster mode](https://github.com/loxilb-io/loxilbdocs/blob/main/docs/microk8s_quick_start_incluster.md)

## Knowledge-Base
- [What is eBPF](ebpf.md)
Expand Down
28 changes: 28 additions & 0 deletions cicd/microk8s-incluster/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

k3snodes = (ENV['K8SNodes'] || "1").to_i
box_name = (ENV['VAGRANT_BOX'] || "sysnet4admin/Ubuntu-k8s")
box_version = "0.7.1"
Vagrant.configure("2") do |config|
config.vm.box = "#{box_name}"
config.vm.box_version = "#{box_version}"

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

(1..k3snodes).each do |node_number|
config.vm.define "mk8s-node#{node_number}" do |node|
node.vm.hostname = "mk8s-node#{node_number}"
ip = node_number + 1
node.vm.network :private_network, ip: "192.168.82.#{ip}", :netmask => "255.255.255.0"
node.vm.provision :shell, :path => "mk8s-install.sh"
node.vm.provider :virtualbox do |vbox|
vbox.customize ["modifyvm", :id, "--memory", 16000]
vbox.customize ["modifyvm", :id, "--cpus", 8]
vbox.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
end
end
end
end
Loading

0 comments on commit 34c8bc4

Please sign in to comment.