openrca / orca

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

Add probe for Kubernetes jobs #26

Closed bzurkowski closed 4 years ago

bzurkowski commented 4 years ago

Add Kubernetes probe for Job resource. Jobs should be linked to pods.

Python client method: list_namespaced_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: