Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simontheleg/debug-pod
https://github.com/simontheleg/debug-pod
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/simontheleg/debug-pod
- Owner: SimonTheLeg
- License: mit
- Created: 2018-06-26T09:23:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-13T18:14:20.000Z (3 months ago)
- Last Synced: 2024-10-16T07:10:10.548Z (3 months ago)
- Language: Dockerfile
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Debug-Pod
Simple pod equipped with networking tools, for debugging purposes. Image can be found on [Dockerhub](https://hub.docker.com/r/simontheleg/debug-pod/).
## Running inside Kubernetes
Can be done in a single (albeit long) shell cmd:
```shell
kubectl create deploy debug-pod --image=simontheleg/debug-pod:latest && \
kubectl wait --for=condition=ready pod -l app=debug-pod && \
kubectl exec -it $(kubectl get pods -o jsonpath="{.items[?(@.metadata.labels.app=='debug-pod')].metadata.name}") -- /bin/bash
```clean up
```shell
kubectl delete deploy debug-pod
```## Building & publishing
```shell
docker build -t simontheleg/debug-pod:latest .
docker push simontheleg/debug-pod:latest
```