Skip to content

Instantly share code, notes, and snippets.

@julie-mills
Created October 4, 2019 01:55
Show Gist options
  • Save julie-mills/1ee9181e44a2df289dcb762fe264bf71 to your computer and use it in GitHub Desktop.
Save julie-mills/1ee9181e44a2df289dcb762fe264bf71 to your computer and use it in GitHub Desktop.
With nodes as (
select
e.event.reason,
e.event.message,
e.event.lastTimestamp as ts,
e.event.metadata.name
from
commons.eventrouter_events e
where
e.event.involvedObject.kind = 'Node'
AND e.event.type = 'Normal'
AND e.event.reason = 'NodeNotReady'
ORDER by ts DESC
)
select
*
from
nodes
Limit 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment