Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kubescape/kollector

Kollector is an in-cluster component of the Kubescape security platform. It Communicates with the Kubernetes API server to collect cluster information and watches for changes in the cluster.
https://github.com/kubescape/kollector

kubernetes kubescape kubescape-helm

Last synced: about 2 months ago
JSON representation

Kollector is an in-cluster component of the Kubescape security platform. It Communicates with the Kubernetes API server to collect cluster information and watches for changes in the cluster.

Awesome Lists containing this project

README

        

# Kollector
The Kollector component is an in-cluster component of the [Kubescape security platform](https://www.armosec.io/blog/kubescape-open-source-kubernetes-security-platform/?utm_source=github&utm_medium=repository).
It communicates with the Kubernetes API server to collect cluster information and watches for changes in the cluster.
The information sent to the Kubescape SaaS platform.

## Building Kollector
To build the kollector run: `go build .`

## Configuration
Load config file using the `CONFIG` environment variable

`export CONFIG=path/to/clusterData.json`

example/clusterData.json

```json5
{
"gatewayWebsocketURL": "127.0.0.1:8001",
"gatewayRestURL": "127.0.0.1:8002",
"kubevulnURL": "127.0.0.1:8081",
"kubescapeURL": "127.0.0.1:8080",
"eventReceiverRestURL": "https://report.armo.cloud",
"eventReceiverWebsocketURL": "wss://report.armo.cloud",
"rootGatewayURL": "wss://ens.euprod1.cyberarmorsoft.com/v1/waitfornotification",
"accountID": "*********************",
"clusterName": "******"
}
```

## Environment Variables

Check out `watch/environmentvariables.go`

* `WAIT_BEFORE_REPORT`: Wait before sending the report to the gateway. Default: 60 seconds. This value is in seconds.

## VS code configuration samples

You can use the sample file below to setup your VS code environment for building and debugging purposes.

.vscode/launch.json

```json5
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceRoot}",
"env": {
"NAMESPACE": "kubescape",
"CONFIG": "${workspaceRoot}/.vscode/clusterData.json",
},
"args": [
"-alsologtostderr", "-v=4", "2>&1"
]
}
]
}
```