Skip to content

Commit

Permalink
Merge pull request #591 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
cicd: k0s single-node incluster mode
  • Loading branch information
UltraInstinct14 authored Mar 15, 2024
2 parents c4c84f0 + 9f01af4 commit b15143a
Show file tree
Hide file tree
Showing 11 changed files with 979 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,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)

## Knowledge-Base
- [What is eBPF](ebpf.md)
Expand Down
28 changes: 28 additions & 0 deletions cicd/k0s-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 "k0s-node#{node_number}" do |node|
node.vm.hostname = "k0s-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 => "k0s-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 b15143a

Please sign in to comment.