Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.16 KB

Probe

Go Report Card

Probe is a simple tool to wait for access to network ports and sockets.

This tool is intended to be used in a Docker container right before launching the actual application. It helps ensure there is access to the network hosts or unix sockets the application requires, before the application is launched. This is especially usefull when using Kubernetes with a service mesh where network access may be blocked for a short period while proxy sidecars start up.

Usage

Probe currently supports TCP and Unix socket addresses.

Wait for localhost port 8080, google.com port 443 and the MySQL socket:

probe wait localhost:8080 tcp:google.com:443 unix:/var/run/mysqld.sock

To see more options, like logging and timeouts:

probe wait --help

Installation

Precompiled

There are procompiled binaries under releases.

Source

Requires go.

To retrieve, build and install the command, run:

go get -u github.com/taisph/probe/cmd/probe