Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 624 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 624 Bytes

pod-reader

Simple python script that uses the Kubernetes ServiceAccount to query pod information of a specified namespace.

After building the container, the intended usage is as follows:

$ kubectl run pod-reader --image=pod-reader:1.0 -- <target namespace>
$ kubectl logs pod-reader

A handy way to test with this container is to create an alias for exploring pods with these commands (assumes default namespace):

$ alias reader='kubectl run pod-reader --image=pod-reader:1.0 -- default ; \
                sleep 5 ; kubectl logs pod-reader ; \
                kubectl delete pod pod-reader'