https://github.com/taisph/probe
Probe is a simple tool to wait for access to network ports and sockets.
https://github.com/taisph/probe
container go golang kubernetes network prober
Last synced: 5 months ago
JSON representation
Probe is a simple tool to wait for access to network ports and sockets.
- Host: GitHub
- URL: https://github.com/taisph/probe
- Owner: taisph
- License: apache-2.0
- Created: 2021-01-10T21:36:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T14:03:58.000Z (over 2 years ago)
- Last Synced: 2024-06-21T09:02:30.393Z (almost 2 years ago)
- Topics: container, go, golang, kubernetes, network, prober
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Probe
[](https://goreportcard.com/report/github.com/taisph/probe)
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:
```shell
probe wait localhost:8080 tcp:google.com:443 unix:/var/run/mysqld.sock
```
To see more options, like logging and timeouts:
```shell
probe wait --help
```
# Installation
## Precompiled
There are procompiled binaries under [releases](https://github.com/taisph/probe/releases).
## Source
Requires [go](https://golang.org/).
To retrieve, build and install the command, run:
```bash
go get -u github.com/taisph/probe/cmd/probe
```