kns
is a command-line tool that provides a quick overview of resource requests and limits for each namespace in a Kubernetes cluster.
To install kns
, follow these steps:
- Download the latest binary for your operating system from the Releases page.
- Make the binary executable (on Unix-like systems):
chmod +x kns
- Move the binary to a directory included in your system's PATH. For example, on Unix-like systems:
sudo mv kns /usr/local/bin/
- Now
kns
is installed and can be run from any location in your terminal.
If you have Go installed and configured:
- Clone the repository:
git clone https://github.com/braundo/kns.git
- Navigate into the cloned directory:
cd kns
- Build and install the binary:
go install
This will compile the source code and place the kns
binary in your $GOPATH/bin
directory, which should be in your PATH if you've set up Go correctly.
To run kns
, simply type kns
in your terminal.
Ensure you have your Kubernetes configuration file (kubeconfig) correctly set up, as kns
uses it to interact with your Kubernetes cluster.