/node-agent

Primary LanguageGoApache License 2.0Apache-2.0

NodeAgent

  1. Run minikube:
minikube start
  1. Run NodeAgent:
sudo SNIFFER_CONFIG=./configuration/SnifferConfigurationFile.json ./sniffer

Limitations:

  1. This feature is using EBPF technology that is implemented only on linux.
  2. the linux kernel version that supported it 5.4 and above.

Debugging

file for vscode:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}", 
            "env": {
                "SNIFFER_CONFIG": "${workspaceFolder}/configuration/SnifferConfigurationFile.json"
            },
            "console": "integratedTerminal",
            "asRoot": true
        }
    ]
}