Closed SpComb closed 6 years ago
Testing with some other process holding the APT lock:
$ kubectl get nodes/ubuntu-xenial -o json | jq '.status.conditions[] | select(.type == "HostUpgrades")'
{
"lastHeartbeatTime": "2018-05-23T13:54:02Z",
"lastTransitionTime": "2018-05-23T13:54:02Z",
"message": "exec host-upgrades([/usr/bin/unattended-upgrade -v]): Job failed",
"reason": "HostUpgradeError",
"status": "False",
"type": "HostUpgrades"
}
Update the kube node status
HostUpgrades
condition based on upgrade errors.