kubectl-nplist does things.
# homebrew
brew install stenic/tap/kubectl-nplist
# gofish
gofish rig add https://github.com/stenic/fish-food
gofish install github.com/stenic/fish-food/kubectl-nplist
# scoop
scoop bucket add kubectl-nplist https://github.com/stenic/scoop-bucket.git
scoop install kubectl-nplist
# go
go install github.com/stenic/kubectl-nplist@latest
# docker
docker pull ghcr.io/stenic/kubectl-nplist:latest
# dockerfile
COPY --from=ghcr.io/stenic/kubectl-nplist:latest /kubectl-nplist /usr/local/bin/
For even more options, check the releases page.
# Installed
kubectl-nplist -h
# Docker
docker run -ti ghcr.io/stenic/kubectl-nplist:latest -h
# Kubernetes
kubectl run kubectl-nplist --image=ghcr.io/stenic/kubectl-nplist:latest --restart=Never -ti --rm -- -h
kubectl-nplist -h