Last active
August 19, 2021 13:53
-
-
Save kkroesch/ccb2e5d70a9af5a08c2954810fd31986 to your computer and use it in GitHub Desktop.
Lightweight Kubernetes Playground with K3S
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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