Vagrant Box with Ubuntu 18.04 and k3s
Used base image elegoev/ubuntu-18.04-docker
directory | description |
---|---|
inspec | inspec test profiles with controls |
packer | packer build, provisioner and post-processor scripts |
test | test environment for provision & inspec development |
- vagrant-disksize
- vagrant-hosts
- vagrant-secret
- vagrant-vbguest
- vagrant-serverspec
- vagrant-vmware-esxi
Vagrant.configure("2") do |config|
ENV['VAGRANT_EXPERIMENTAL'] = "disks"
$basebox_name="ubuntu-18.04-k3s-test"
$basebox_hostname="ubuntu-1804-k3s-test"
$src_image_name="elegoev/ubuntu-18.04-k3s"
$vb_group_name="basebox-k3s-test"
config.vm.define "#{$basebox_name}" do |machine|
machine.vm.box = "#{$src_image_name}"
# define guest hostname
machine.vm.hostname = "#{$basebox_hostname}"
machine.vm.provider "virtualbox" do |vb|
vb.name = $basebox_name
vb.cpus = 1
vb.customize ["modifyvm", :id, "--memory", "1024" ]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize [
"modifyvm", :id, "--uartmode1", "file",
File.join(Dir.pwd, "ubuntu-bionic-18.04-cloudimg-console.log")
]
vb.customize ["modifyvm", :id, "--groups", "/#{$vb_group_name}" ]
vb.customize ["modifyvm", :id, "--vram", 256 ]
end
machine.vm.disk :disk, size: "40GB", primary: true
end
end
k3s --help
- k3s.io
- k3s github
- Youtube - Client-side load balancing in K3s Kubernetes clusters - Darren Shepherd
- Youtube - K3s Under the Hood: Building a Product-grade Lightweight Kubernetes Distro - Darren Shepherd
- Running K3s, Lightweight Kubernetes, in Production for the Edge & Beyond - Darren Shepherd, Rancher
- k3s - Lightweight Kubernetes
- k3s Internals: The Crazy Things We Do To Make k8s Simple
- Create a Self-Contained and Portable Kubernetes Cluster With K3S and Packer
Repository follows sematic versioning
For all notable changes see CHANGELOG
Licensed under The MIT License (MIT) - for the full copyright and license information, please view the LICENSE file.
Any and all feedback is welcome. Please let me know of any issues you may find in the bug tracker on github. You can find it here.