Install and Set Up Kubectl
1 min readJul 7, 2020
I will explain in a simpler way the installation of kubetcl, but do not wait if it is through a graphical interface, but it will be via CLI.
Windows 10 — I recommend the configuration either by chocolatey — https://chocolatey.org/install
Linux
Debian | Ubuntu Like
sudo apt-get update && sudo apt-get install -y apt-transport-https gnupg2
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
Redhat, CentOs and Fedora Like
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
yum install -y kubectl
Install kubectl on macOS using Homebrew
brew install kubectl
or
brew install kubernetes-cli