From feba19b8dcfdf899830f80acd6fa2c47fa5d4aac Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 4 Nov 2023 22:36:46 +0100 Subject: [PATCH] Add user to microk8s group --- .../modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl | 2 +- .../modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl index 6a7aadc..e2b5ede 100644 --- a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl +++ b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl @@ -1,7 +1,7 @@ #cloud-config users: - name: ${admin_user} - groups: users, admin + groups: users, admin, microk8s sudo: ALL=(ALL) NOPASSWD:ALL shell: /bin/bash ssh_authorized_keys: diff --git a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl index e0939f8..ee3777b 100644 --- a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl +++ b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl @@ -1,7 +1,7 @@ #cloud-config users: - name: ${admin_user} - groups: users, admin + groups: users, admin, microk8s sudo: ALL=(ALL) NOPASSWD:ALL shell: /bin/bash ssh_authorized_keys: