Closed SpComb closed 6 years ago
Fixes #19
Use a pharos-host-upgrades.kontena.io/reboot annotation timestamp vs the node info BootTime timestamp to track the node reboot state across restarts.
pharos-host-upgrades.kontena.io/reboot
BootTime
The HostUpgradesReboot condition is updated through the RebootRequired => Rebooting => Rebooted states.
HostUpgradesReboot
RebootRequired
Rebooting
Rebooted
The reboot annotation also guards against spurious restarts during the reboot:
2018/05/30 13:47:34 Failed to initialize kube: Kube node ubuntu-xenial is still rebooting (reboot=2018-05-30 13:09:26.719129811 +0000 UTC >= boot=2018-05-30 13:05:14 +0000 UTC)
Fixes #19
Use a
pharos-host-upgrades.kontena.io/reboot
annotation timestamp vs the node infoBootTime
timestamp to track the node reboot state across restarts.The
HostUpgradesReboot
condition is updated through theRebootRequired
=>Rebooting
=>Rebooted
states.The reboot annotation also guards against spurious restarts during the reboot: