- Do not use it in production environments. It's a quick lab.
- It's an IaaS lab foccussed on K3s (so no AKS, AzLoadBalancer...).
- Check the Makefile.
- Docker, in order to support DevContainers.
- VSCode with DevContainers plugin.
-
Initiate the DevContainer.
-
Authenticate to Azure using
az login
(and select proper subscription withaz account set --subscription <subscription>
). -
Browse to the
terraform
folder, and check these variables before applying it:
rg_name
: Shouldn't exist in your subscription.vm_prefix_name
: Shouldn't overlap with current VM's in your subscription.
-
Deploy it with
terraform apply
. -
Connect to VMs and have fun (
ssh gw
/ssh k3s0
/ ...).
flowchart LR
C("Gateway<br>") --> D["K3s Server"] & E["K3s Agent 1"] & F["K3s Agent n"]
n1[/"Admin (ssh)"\] --> C
n2[/"User (web)"\] --> C
- Server sufixed by (
-gw
) is the proxy for all traffic (ssh
andhttp/https
). - Server sufixed by (
-k3s0
) is the K3s server. - Any other server is a K3s agent.