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

cicd: k0s single-node incluster mode #591

Merged
merged 2 commits into from
Mar 15, 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
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
Loading