Install build & dev dependencies:
Install source code and golang dependencies:
go get -d github.com/boz/kubetop
cd $GOPATH/src/github.com/boz/kubetop
make install-depsbuild kubetop binary:
makebuild kubetop docker image on minikube's docker
make image-minikubeUse kubectl's default context:
./kubetopWrite debug logs to kubetop.log:
./kubetop -v debug -l kubetop.logRun as a kubernetes job:
kubectl run -it --rm --restart=Never --image=abozanich/kubetop kubetopBuild an image locally and test:
make image-minikube
kubectl run -it --rm --restart=Never --image=kubetop kubetop
# get better colors
kubectl run -it --rm --restart=Never --image=kubetop --env="TERM=$TERM" kubetopThere are kube definitions in _example for dev testing
ls _example/*.yml | xargs -n 1 kubectl create -fWork in progress