Open omerlh opened 5 years ago
Look into the AWS import source and others. Docs do not exist in this regard, but many code examples.
there is a tool to import from k8s into icinga via api, not director.
I had trouble getting it to work, though
Since #1818 we ship a rudimentary generic REST API ImportSource with the Icinga Director. There is no "standard" for REST, apart from being HTTP with some JSON - every API looks slightly different. It's getting complicated once it goes to pagination strategies etc.
It would be great if someone could give that ImportSource a quick try with k8s. I'd love to hear whether:
a) it just works b) it would require a very few additional toggles c) it wouldn't fit something as complex as k8s
a) or b) would be great, c) would ask for a dedicated module like AWS or vSphereDB (3rd party: Azure or Marathon.
Expected Behavior
I would like to be able to import hosts from existing Kubernetes clusters (e.g. import all deployments/jobs/services)
Current Behavior
No support for that
Possible Solution
Writing a plugin? Is this possible? I could not find how in the documentation, but I do find the relevant code for writing an importer.