Sign inSign up

orginux/pod-info

By orginux

•Updated over 5 years ago

The minimal image with web-server for debugging Kubernetes

Image
1

1.3K

orginux/pod-info repository overview

⁠pod-info

The minimal image with web-server for debugging Services in Kubernetes

⁠Usage

⁠Docker
docker run --rm -d -p 80:8080 orginux/pod-info
$ curl localhost:80
Hostname: 837b80954f04
IP: 172.17.0.2
URI: /
⁠Kubernetes

Create Deployment

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

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

Tag summary

Content type

Image

Digest

Size

3.2 MB

Last updated

over 5 years ago

docker pull orginux/pod-info