From a6bd1a6a4895a6d59f301228d737e4896a0bf39c Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Mon, 28 Feb 2022 17:57:28 +0100 Subject: [PATCH] trying the reboot-sentinel route --- kustomize/kured.yaml | 1 + modules/host/templates/userdata.yaml.tpl | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/kustomize/kured.yaml b/kustomize/kured.yaml index bf72a0c..b4abdea 100644 --- a/kustomize/kured.yaml +++ b/kustomize/kured.yaml @@ -18,3 +18,4 @@ spec: command: - /usr/bin/kured - --reboot-command=/usr/bin/systemctl reboot + - --reboot-sentinel=/var/run/reboot-needed diff --git a/modules/host/templates/userdata.yaml.tpl b/modules/host/templates/userdata.yaml.tpl index c685b6e..ad7587e 100644 --- a/modules/host/templates/userdata.yaml.tpl +++ b/modules/host/templates/userdata.yaml.tpl @@ -17,12 +17,6 @@ write_files: AuthorizedKeysFile .ssh/authorized_keys path: /etc/ssh/sshd_config.d/kube-hetzner.conf -# Setting the right reboot mode -- content: | - REBOOT_METHOD=kured - path: /etc/transactional-update.conf - append: true - # Add ssh authorized keys ssh_authorized_keys: %{ for key in sshAuthorizedKeys ~} @@ -40,6 +34,5 @@ runcmd: # Fix hostname (during first boot) - hostnamectl hostname ${hostname} -# Finishing automatic reboot via Kured setup -- systemctl reload transactional-update +# We are going to let kured do the reboot - rebootmgrctl set-strategy off \ No newline at end of file