openrca / orca

Root Cause Analysis for Kubernetes
https://openrca.io
Apache License 2.0
90 stars 10 forks source link

Add probe for Kubernetes cron jobs #27

Closed bzurkowski closed 4 years ago

bzurkowski commented 4 years ago

Add Kubernetes probe for Cron Job resource. Cron job elements should be linked to job elements.

Python client method: list_namespaced_cron_job (see all methods)

In order to add a new probe, one need to implement probe and linker. The former pulls upstream entities (i.e. K8S objects) and inserts them into entity graph. The latter links inserted graph nodes. In other words: probes create graph nodes, whereas linkers create graph edges.

Below, an example implementation of related modules for K8S Service object: