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.
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
There are procompiled binaries under releases.
Requires go.
To retrieve, build and install the command, run:
go get -u github.com/taisph/probe/cmd/probe