add: YAML file for kubernetes

This commit is contained in:
Markus Pesch 2020-06-23 07:35:29 +02:00
parent 357a1929db
commit 8b8380c831
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 30 additions and 2 deletions

View File

@ -5,17 +5,34 @@
This project, hosted on
[git.cryptic.systems](https://git.cryptic.systems/volker.raschek/network-tools),
contains only files to build to container image. The container image contains
contains only files to build the container image. The container image contains
network tools to analyse or monitor network communication. This can be helpful
in a containerized environment.
## Usage
To use this image execute the following command.
### Docker
To use this image execute the following command in a docker environment.
```bash
$ docker run \
--rm \
volkerraschek/network-tools:latest \
bash
```
### Kubernetes
For a kubernetes environment you can use the [YAML-File](network-tools.yaml) by
executing the following command.
```bash
$ kubectl create -f https://git.cryptic.systems/volker.raschek/network-tools/network-tools.yml
```
Execute a shell inside the container by
```bash
kubectl exec -it network-tools -- sh
```

11
network-tools.yml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Pod
metadata:
name: network-tools
spec:
containers:
- name: network-tools
image: volkerraschek/network-tools:latest
command: [ "sleep", "3600" ]
imagePullPolicy: Always
restartPolicy: Always