How Do You Install kubectl on Any Type of Linux?

Problem scenario
You want a quick, generic way to install kubectl on any type of Linux.  What should you do?

Run these commands:

cd /tmp

curl -Lo kubectl$(curl -s && chmod +x kubectl

sudo mv kubectl /usr/local/bin/

Test it by running this command: kubectl version

(If you would prefer to use apt commands, because you are using a Debian/Ubuntu distribution of Linux, to install kubectl, see this posting.)

Leave a comment

Your email address will not be published. Required fields are marked *