trying the reboot-sentinel route
This commit is contained in:
parent
dbc6dbf0aa
commit
a6bd1a6a48
@ -18,3 +18,4 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /usr/bin/kured
|
- /usr/bin/kured
|
||||||
- --reboot-command=/usr/bin/systemctl reboot
|
- --reboot-command=/usr/bin/systemctl reboot
|
||||||
|
- --reboot-sentinel=/var/run/reboot-needed
|
||||||
|
@ -17,12 +17,6 @@ write_files:
|
|||||||
AuthorizedKeysFile .ssh/authorized_keys
|
AuthorizedKeysFile .ssh/authorized_keys
|
||||||
path: /etc/ssh/sshd_config.d/kube-hetzner.conf
|
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
|
# Add ssh authorized keys
|
||||||
ssh_authorized_keys:
|
ssh_authorized_keys:
|
||||||
%{ for key in sshAuthorizedKeys ~}
|
%{ for key in sshAuthorizedKeys ~}
|
||||||
@ -40,6 +34,5 @@ runcmd:
|
|||||||
# Fix hostname (during first boot)
|
# Fix hostname (during first boot)
|
||||||
- hostnamectl hostname ${hostname}
|
- hostnamectl hostname ${hostname}
|
||||||
|
|
||||||
# Finishing automatic reboot via Kured setup
|
# We are going to let kured do the reboot
|
||||||
- systemctl reload transactional-update
|
|
||||||
- rebootmgrctl set-strategy off
|
- rebootmgrctl set-strategy off
|
Loading…
Reference in New Issue
Block a user