Installing kubectl on Linux
Install kubectl on Debian or Ubuntu Linux by downloading it and moving it to a directory in your path.
Run the following commands in a terminal on Debian or Ubuntu Linux.
They download kubectl, make it executable, move it to a directory in your path, and verify the installation:
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
kubectl version --clientThe installation method varies by host. On macOS, you can install kubectl with Homebrew (brew install kubectl). On Windows, you can install it with Chocolatey (choco install kubernetes-cli).
