Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
412 stars 202 forks source link

Kubernetes Importer #1896

Open omerlh opened 5 years ago

omerlh commented 5 years ago

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.

dnsmichi commented 5 years ago

Look into the AWS import source and others. Docs do not exist in this regard, but many code examples.

yoshi314 commented 5 years ago

there is a tool to import from k8s into icinga via api, not director.

I had trouble getting it to work, though

Thomas-Gelf commented 5 years ago

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.