ops-itop / itop-extensions

my extensions of itop
29 stars 12 forks source link

Any documentation on how to use the kubernetes extensions #119

Open Schirrms opened 2 years ago

Schirrms commented 2 years ago

Hi annhe, I just tried to use your big kubernetes extensions on a brand new (and dedicated) iTop 2.7.6 installation.

With a few minor changes in le-config-mgmt, the installation was OK.

But I'm unable to setup anything as it seems to have a precise organization so I suspect that I don't create items in the good order.

do you have any documentation (even in chinese, as google traduction does a decent job :))

Thank for the great work,

Schirrms.

annProg commented 2 years ago

The only documentation is README.md in the extension folder.

Do you install the action-shell-exec extension? then add trigger and action?

The main workflow is:

  1. create or update Deployment or Ingress CI in iTop
  2. use iTop Trigger to trigger an Shell exec action
  3. shell exec action will run an external script to call kubernetes API, update the modification in iTop.

This extension is developed 3 years ago for iTop 2.5.1 and Kubernetes 1.12, so you may need some modification to make it work.

If you refactor this extension, better choice may be webhook action or develop a message queue action. Then refactor the external kubernetes client.