server

command module
v0.0.0-...-7dfe183 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 11 Imported by: 0

README

Server

The server is a simple thread that receives packets from the client, adds the timestamp and sends it back. It can be deployed in all kind of environments provided that the client is able to reach it from inside or outside the LAN.

How to deploy

docker pull richimarchi/latency-tester_server
docker run -p 8080:8080 [--name <container-name>] richimarchi/latency-tester_server [-addr=<ip:port>] [-tls=<enabled>]

Latest version: 1.1.0

Server flags:
Param Description Default Value
-addr Listening address and port 0.0.0.0:8080
-tls true if TLS requested false
How to deploy the server into a Kubernetes cluster

Starting from the serverDeploymentSkeleton.yaml file, generate the custom deployment file depending on your hostname and deploy it in your k8s cluster:

export HOSTNAME=<custom-hostname>
envsubst < serverDeploymentSkeleton.yaml > customServerDeployment.yaml
kubectl apply -f customServerDeployment.yaml

N.B.: Ingress annotations are ingress controller dependent

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
serialization

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL