Skip to content

Instantly share code, notes, and snippets.

@kkroesch
Last active August 19, 2021 13:53
Show Gist options
  • Save kkroesch/ccb2e5d70a9af5a08c2954810fd31986 to your computer and use it in GitHub Desktop.
Save kkroesch/ccb2e5d70a9af5a08c2954810fd31986 to your computer and use it in GitHub Desktop.
Lightweight Kubernetes Playground with K3S
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "controlplane", primary: true do |controlplane|
config.vm.box = "centos/7"
config.vm.hostname = "haithabu"
end
config.vm.define "node-1", autostart: false do |node|
config.vm.box = "centos/7"
config.vm.hostname = "horik"
end
config.vm.define "node-2", autostart: false do |node|
config.vm.box = "centos/7"
config.vm.hostname = "aslaug"
end
config.vm.network "public_network"
config.vm.provision "shell", inline: <<-SHELL
yum update -y
# export K3S_URL=https://10.0.2.15:6443
# export K3S_TOKEN=K108...22db
# curl -sfL https://get.k3s.io | sh -
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment