2020-03-13 12:20:53 +00:00
|
|
|
# network-tools
|
|
|
|
|
2020-06-06 17:05:16 +00:00
|
|
|
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/network-tools/status.svg)](https://drone.cryptic.systems/volker.raschek/network-tools)
|
2020-03-13 12:20:53 +00:00
|
|
|
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/network-tools)](https://hub.docker.com/r/volkerraschek/network-tools)
|
|
|
|
|
2021-08-30 18:13:06 +00:00
|
|
|
This project contains all sources to build the container image
|
|
|
|
`docker.io/volkerraschek/network-tools`. The primary goal of the image is only
|
|
|
|
to contain some network tools to debug container based environments like docker
|
|
|
|
or kubernetes.
|
2020-06-06 17:05:16 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2020-06-23 05:35:29 +00:00
|
|
|
### Docker
|
|
|
|
|
|
|
|
To use this image execute the following command in a docker environment.
|
2020-06-06 17:05:16 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker run \
|
|
|
|
--rm \
|
|
|
|
volkerraschek/network-tools:latest \
|
2021-03-28 14:24:32 +00:00
|
|
|
sh
|
2020-06-23 05:35:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Kubernetes
|
|
|
|
|
|
|
|
For a kubernetes environment you can use the [YAML-File](network-tools.yaml) by
|
|
|
|
executing the following command.
|
|
|
|
|
|
|
|
```bash
|
2021-02-09 08:25:55 +00:00
|
|
|
kubectl create -f https://git.cryptic.systems/volker.raschek/network-tools/raw/branch/master/network-tools.yml
|
2020-06-23 05:35:29 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Execute a shell inside the container by
|
|
|
|
|
|
|
|
```bash
|
2021-03-28 14:24:32 +00:00
|
|
|
kubectl exec -it network-tools -- sh
|
2021-01-08 15:53:49 +00:00
|
|
|
```
|