orginux / echopod

The minimal HTTP server that provides info about container/pod.

Home Page:https://hub.docker.com/r/orginux/echopod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

echopod

The minimal HTTP server that provides info about container/pod.

Usage

Docker

docker run --rm -d -p 80:8080 orginux/echopod
$ curl localhost:80
Hostname: 837b80954f04
IP: 172.17.0.2
URI: /
Method: GET
RemoteAddr: 10.8.8.1:2786

Kubernetes

Create Deployment:

export DEPLOY_NAME="example"
kubectl create deployment $DEPLOY_NAME --image=orginux/echopod

Optional scaling:

kubectl scale deployment $DEPLOY_NAME --replicas=5

Ceate Service:

kubectl expose deployment $DEPLOY_NAME --port=80 --target-port=8080 --name=${DEPLOY_NAME}-service --type=LoadBalancer

Or forward port:

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

About

The minimal HTTP server that provides info about container/pod.

https://hub.docker.com/r/orginux/echopod

License:MIT License


Languages

Language:Go 75.9%Language:Makefile 12.1%Language:Dockerfile 11.9%