From 9cb86a68ec0f7c2bab93d67fa96142d98baef260 Mon Sep 17 00:00:00 2001 From: Hazar Guney Date: Mon, 18 Nov 2024 18:07:10 +0100 Subject: [PATCH] disable default service account --- k3s.pkr.hcl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/k3s.pkr.hcl b/k3s.pkr.hcl index e2d34c2..e9391e3 100644 --- a/k3s.pkr.hcl +++ b/k3s.pkr.hcl @@ -33,9 +33,10 @@ source "googlecompute" "k3s" { image_family = regex_replace("k3s-${regex_replace(var.k3s_version, "\\+.*$", "")}", "[^a-zA-Z0-9_-]", "-") image_name = regex_replace("k3s-${var.k3s_version}-${uuidv4()}", "[^a-zA-Z0-9_-]", "-") - source_image_family = "ubuntu-2204-lts" - machine_type = "n1-standard-4" - disk_size = 20 + source_image_family = "ubuntu-2204-lts" + machine_type = "n1-standard-4" + disk_size = 20 + disable_default_service_account = true ssh_username = "root" }