diff --git a/terraform/main.tf b/terraform/main.tf index 9816279b..20b7eb69 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -54,30 +54,17 @@ resource "lxd_container" "kubernetes_controllers" { provisioner "local-exec" { command = < /etc/apt/sources.list.d/kubernetes.list - apt-get update - apt-get install -y kubelet kubeadm kubectl - apt-mark hold kubelet kubeadm kubectl - systemctl daemon-reload - systemctl enable --now kubelet + apt-get install -y curl + curl -sfL https://get.k3s.io | sh - apt-get install -y linux-image-$(uname -r) mknod /dev/kmsg c 1 11 - kubeadm init ' EXEC } } resource "lxd_container" "kubernetes_workers" { - count = 1 + count = 0 name = "worker-${count.index}" image = "images:ubuntu/18.04" ephemeral = false