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 8021655..c804113 100644 --- a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl +++ b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-manager.tftpl @@ -17,7 +17,7 @@ package_reboot_if_required: true write_files: - owner: root:root content: "${microk8s_config}" - path: /run/tmpfiles.d/.microk8s.yaml + path: /run/tmpfiles.d/microk8s.yaml encoding: base64 defer: true - owner: root:root 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 6591695..f9b9f00 100644 --- a/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl +++ b/terraform/modules/k8s-cluster/templates/cloud-init-k8s-worker.tftpl @@ -17,7 +17,7 @@ package_reboot_if_required: true write_files: - owner: root:root content: "${microk8s_config}" - path: /run/tmpfiles.d/.microk8s.yaml + path: /run/tmpfiles.d/microk8s.yaml encoding: base64 defer: true - owner: root:root diff --git a/terraform/modules/k8s-cluster/templates/microk8s-setup.sh b/terraform/modules/k8s-cluster/templates/microk8s-setup.sh index adbf336..85064a0 100644 --- a/terraform/modules/k8s-cluster/templates/microk8s-setup.sh +++ b/terraform/modules/k8s-cluster/templates/microk8s-setup.sh @@ -1,7 +1,7 @@ #!/bin/sh mkdir -p /var/snap/microk8s/common/etc/launcher -cp /run/tmpfiles.d/.microk8s.yaml /var/snap/microk8s/common/etc/launcher/.microk8s.yaml +cp /run/tmpfiles.d/microk8s.yaml /var/snap/microk8s/common/etc/launcher/microk8s.yaml %{ if !main_node ~} sleep 120 %{ endif ~}