Description
This article explains how to install kubectl
on Ubuntu Linux.[1]
Steps
- To download the latest release of
kubectl
use the following command:
1 | $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" |
- To install
kubectl
run:
1 | $ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
- Verify installation:
1 | $ kubectl version |