Skip to content

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

License

Notifications You must be signed in to change notification settings

docker-training/pod-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published