CorneilleEdi / pod-info

Container image that return info about the running pod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pod Info

Container image that return info about the running pod

Paths

  • /: web page
  • /json: info as json
{
    "hostname": "1c314e3d63cd",
    "ip": "172.17.0.2",
    "method": "GET",
    "namespace": "",
    "remote_addr": "172.17.0.1",
    "uri": "/json"
}

Build

docker build -t pod-info:1.0.0 . 

Run

docker run -p 8080:8080 --name pod-indo pod-info:1.0.0

About

Container image that return info about the running pod


Languages

Language:Python 52.9%Language:HTML 29.0%Language:CSS 8.1%Language:Dockerfile 5.2%Language:Makefile 4.8%