kubesphere / kubeeye

KubeEye aims to find various problems on Kubernetes, such as application misconfiguration, unhealthy cluster components and node problems.
https://kubesphere.io
Apache License 2.0
810 stars 126 forks source link

Modify the logic of plugins #214

Closed ruiyaoOps closed 2 years ago

ruiyaoOps commented 2 years ago

Add kubeeye-kubeeye-controller-manager-service service, to receive the results of plugins.

Modify the logic of plugins, the ClusterInsight just trigger plugins audit, and the plugins results will be written to ClusterInsight through the the kubeeye-kubeeye-controller-manager-service service.

Modify the logic of install/uninstall plugins, the plugin installation files stored in plugin configmap, and create plugin resources by reading the configmap data.

Signed-off-by: yaorui yaorui@yunify.com

ruiyaoOps commented 2 years ago

Kubeeye audit and plugins audit exec only once, until delete recreate clusterinsights clusterinsight-sample.

the ClusterInsight just trigger plugins audit by get http://$(pluginname).kubeeye-system.svc/start, and the plugin will report the result to http://kubeeye-controller-manager-service.kubeeye-system.svc/plugins?name=$(pluginname), the plugin name is the unique identifier for the plugin.

ruiyaoOps commented 2 years ago

/cc @pixiake @zheng1

pixiake commented 2 years ago

/lgtm /approve

ks-ci-bot commented 2 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pixiake, ruiyaoOps

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubesphere/kubeeye/blob/experiment/OWNERS)~~ [pixiake,ruiyaoOps] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment