kontena / pharos-host-upgrades

Kube DaemonSet for host OS upgrades
Apache License 2.0
41 stars 1 forks source link

Track kube node reboot status #21

Closed SpComb closed 6 years ago

SpComb commented 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.

The HostUpgradesReboot condition is updated through the RebootRequired => Rebooting => Rebooted states.

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)