Automatic namespace detection for kubectl commands
Are you frustrated by having to specify the namespace for every kubectl command?
Do you wish you could just run commands like kubectl get pod my-pod
and not worry about specifying the namespace?
Now you can 📬
Installation with Krew
- Make sure you have Krew Installed
- Run
kubectl krew install autons
- You're ready to go! Run
kubectl autons <command>
and never worry about namespaces again!
- Download the latest release for your platform from github releases or build the binary from source with go build
- Make sure to rename the binary name to
kubectl-autons
and that it is executable - Move the binary to a directory in your PATH
- You're ready to go! Run
kubectl autons <command>
and never worry about namespaces again!
kubectl autons describe pod my-pod
kubectl autons describe pod/my-pod
kubectl autons logs my-pod
kubectl autons port-forward my-pod 8080:8080
kubectl autons port-forward svc/my-svc 8080:8080