Skip to content

Instantly share code, notes, and snippets.

@kleong
Created October 9, 2019 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kleong/e47b4d3209ac6c6b0bb82c2a38d112e4 to your computer and use it in GitHub Desktop.
Save kleong/e47b4d3209ac6c6b0bb82c2a38d112e4 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