https://github.com/orginux/echopod
The minimal HTTP server that provides info about container/pod.
https://github.com/orginux/echopod
docker go golang kubernetes network
Last synced: 5 months ago
JSON representation
The minimal HTTP server that provides info about container/pod.
- Host: GitHub
- URL: https://github.com/orginux/echopod
- Owner: orginux
- License: mit
- Created: 2020-10-21T18:54:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T13:43:07.000Z (about 5 years ago)
- Last Synced: 2025-08-09T21:39:05.366Z (11 months ago)
- Topics: docker, go, golang, kubernetes, network
- Language: Go
- Homepage: https://hub.docker.com/r/orginux/echopod
- Size: 32.2 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# echopod
The minimal HTTP server that provides info about container/pod.
## Usage
### Docker
```bash
docker run --rm -d -p 80:8080 orginux/echopod
```
```bash
$ curl localhost:80
Hostname: 837b80954f04
IP: 172.17.0.2
URI: /
Method: GET
RemoteAddr: 10.8.8.1:2786
```
### Kubernetes
Create Deployment:
```bash
export DEPLOY_NAME="example"
kubectl create deployment $DEPLOY_NAME --image=orginux/echopod
```
Optional scaling:
```bash
kubectl scale deployment $DEPLOY_NAME --replicas=5
```
Ceate Service:
```bash
kubectl expose deployment $DEPLOY_NAME --port=80 --target-port=8080 --name=${DEPLOY_NAME}-service --type=LoadBalancer
```
Or forward port:
```bash
kubectl port-forward deployment/${DEPLOY_NAME} 8080:8080
```
Get content:
```
$ curl http://external-ip/debug
Hostname: deploy-name-5757fb5f64-k4jzv
IP: 10.0.8.7
Namespace: default
URI: /debug
Method: GET
RemoteAddr: 10.8.8.1:2786
```