add: YAML file for kubernetes
This commit is contained in:
parent
357a1929db
commit
8b8380c831
21
README.md
21
README.md
@ -5,13 +5,15 @@
|
||||
|
||||
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 \
|
||||
@ -19,3 +21,18 @@ $ docker run \
|
||||
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
11
network-tools.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user