-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
We use one table and one parse_conditions() method for both pod & node status.conditions.
The fields we take match node conditions but not exactly pods. Specifically:
- nodes have
lastHeartbeatTimewhich we parse & store; - pods instead have
lastProbeTimewhich we discard.
https://kubernetes.io/docs/api-reference/v1.8/#nodecondition-v1-core
https://kubernetes.io/docs/api-reference/v1.8/#podcondition-v1-core
Example from node:
conditions:
- lastHeartbeatTime: 2017-12-06T12:06:44Z
lastTransitionTime: 2017-12-06T10:03:09Z
message: kubelet has sufficient disk space available
reason: KubeletHasSufficientDisk
status: "False"
type: OutOfDisk
example from pod:
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2017-12-06T10:19:15Z
status: "True"
type: Initialized
(but according to doc, may also have message and reason)
Reactions are currently unavailable