Categorygithub.com/mirantis/k8s-netchecker-agent
modulepackage
1.1.0
Repository: https://github.com/mirantis/k8s-netchecker-agent.git
Documentation: pkg.go.dev

# README

Network checker agent

Build Status Stories in Progress Go Report Card Code Climate License Apache 2.0 Docker Pulls

The agent is a simple application that collects network related information from a host and sends it to designated network checker server end point.

Usage

agent -v=5 -alsologtostderr=true -serverendopoint=0.0.0.0:8888 -reportinterval=5

Building binary, running tests and preparing docker image

Build static binary inside of intermediate build container: make build-containerized

Prepare docker image: make build-image

Run tests inside intermediate container: export DOCKER_BUILD=yes; make unit

# Constants

EnvVarNodeName is a node name variable in pod's environment.
EnvVarPodName is a pod name variable in pod's environment.
NetcheckerAgentsEndpoint is a server URI where keepalive message is sent to.
NetcheckerProbeEndpoint is a server URI that just provides simple 200 answer.

# Structs

Payload structure for keepalive message sent from agent to server.
ProbeResult structure contains network probing result for one URL.

# Interfaces

Client is a REST API client interface that matches standard http.Client struct and references only Do() method from there.