This Vagrant Box provides Libvirt and VirtualBox image for running Kubernetes in single node all-in-one mode.
Vagrant Box Packaging for Kubernetes
Vagrant Box Packaging for Kubernetes.
This Vagrant Box provides Libvirt and VirtualBox image for running a Certified Kubernetes environment in single node all-in-one mode.
Supported Boxes and Respective Packer Template Links
alvistack/kubernetes-1.29
alvistack/kubernetes-1.28
alvistack/kubernetes-1.27
alvistack/kubernetes-1.26
eth0
Quick Start
Once you have Vagrant and VirtaulBox installed, run the following commands under your project directory:
# Initialize Vagrant
cat > Vagrantfile <<-EOF
Vagrant.configure('2') do |config|
config.vm.hostname = 'kubernetes-1.29'
config.vm.box = 'alvistack/kubernetes-1.29'
config.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.cpus = 2
libvirt.disk_bus = 'virtio'
libvirt.disk_driver :cache => 'writeback'
libvirt.driver = 'kvm'
libvirt.memory = 8192
libvirt.memorybacking :access, :mode => 'shared'
libvirt.nested = true
libvirt.nic_model_type = 'virtio'
libvirt.storage :file, bus: 'virtio', cache: 'writeback'
libvirt.video_type = 'virtio'
end
config.vm.provider :virtualbox do |virtualbox|
config.vm.disk :disk, name: 'sdb', size: '10GB'
virtualbox.cpus = 2
virtualbox.customize ['modifyvm', :id, '--cpu-profile', 'host']
virtualbox.customize ['modifyvm', :id, '--nested-hw-virt', 'on']
virtualbox.memory = 8192
end
end
EOF
Start the virtual machine
export VAGRANT_EXPERIMENTAL='1'
vagrant up
SSH into this machine
vagrant ssh
Terminate the virtual machine
vagrant destroy --force
Molecule
You could also run our Molecule test cases if you have Vagrant and Libvirt installed, e.g.
# Run Molecule on Kubernetes 1.29
molecule converge -s kubernetes-1.29-libvirt
Please refer to .gitlab-ci.yml for more information on running Molecule.
Versioning
YYYYMMDD.Y.Z
Release tags could be find from GitHub Release of this repository. Thus using these tags will ensure you are running the most up to date stable version of this image.
YYYYMMDD.0.0
Version tags ended with .0.0
are rolling release rebuild by GitLab
pipeline
in weekly basis. Thus using these tags will ensure you are running the
latest packages provided by the base image project.
License
Author Information
Twice a month we will interview people behind open source businesses. We will talk about how they are building a business on top of open source projects.
We'll never share your email with anyone else.