Containers that display information about the pods in the namespace they're running in.
10K+
Container that displays informations about the Pod it's running on.
kubectl create namespace podstalk && \
kubectl -n podstalk apply -f https://github.com/mhutter/podstalk/raw/master/kube/daemonset.yml
Will create a daemonset running mhutter/podstalk and a service named
podstalk, along with a Role and a Rolebinding required to list pods in the
namespace.
The following env vars can be set to customize Podstalk:
TITLE (default: Podstalk) - <title> of the HTML pageBASE_PATH (default: "") - Base path of the app, used for asset servingTo regenerate bindata.go, do:
go-bindata -pkg podstalk -prefix data/ data/*
For local development I recommend using gin:
gin --build cmd/podstalk
This will run podstalk on http://localhost:3000/ and reload each time a go file is changed.
To use with minikube you can do the following:
# delploy podstalk into minikube
kubectl create namespace podstalk
kubectl -n podstalk apply -f kube/deployment.yml
kubectl -n podstalk expose svc/podstalk --type NodePort --name podstalk-ext
# set `imagePullPolicy` to `IfNotPresent`
kubectl -n podstalk edit deployment podstalk
# Connect to the minikube docker daemon
eval $(minikube docker-env)
# build the image (each time you changed the code)
docker build -t mhutter/podstalk .
# restart all pods (each time you built a new image)
kubectl -n podstalk delete pod -l app=podstalk
# access podstalk in the browser
minikube -n podstalk service podstalk-ext
Content type
Image
Digest
Size
12.6 MB
Last updated
over 7 years ago
docker pull mhutter/podstalk