From e3fafdf61b00086bf6296010f915c58becdeb97a Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 4 Nov 2023 16:54:40 +0100 Subject: [PATCH] Fix path of launch configuration to that expected by microk8s --- terraform/modules/k8s-cluster/templates/cloud-init-k8s.tftpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/modules/k8s-cluster/templates/cloud-init-k8s.tftpl b/terraform/modules/k8s-cluster/templates/cloud-init-k8s.tftpl index b0c0ebf..8f5b1da 100644 --- a/terraform/modules/k8s-cluster/templates/cloud-init-k8s.tftpl +++ b/terraform/modules/k8s-cluster/templates/cloud-init-k8s.tftpl @@ -46,8 +46,8 @@ runcmd: - apt install /tmp/hc-utils_0.0.4-1_all.deb - apt-get -y install snapd - snap install kubectl --classic - - mkdir -p /var/snap/microk8s/common - - cp /tmp/.microk8s.yaml /var/snap/microk8s/common/.microk8s.yaml + - mkdir -p /var/snap/microk8s/common/etc/launcher + - cp /tmp/.microk8s.yaml /var/snap/microk8s/common/etc/launcher/.microk8s.yaml - snap install microk8s --channel "${microk8s_channel}" - mkdir -p /home/terraform/.kube - microk8s kubectl config view --raw > /home/terraform/.kube/config