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