How to install kubectl on macOS

Jul 22, 2021 · 1 min read · Post a comment
How to install kubectl on macOS

Kubectl is a powerful command-line tool that allows you to control your kubernetes clusters. With kubectl you can deploy applications, manage your cluster recourses, and view logs. This tutorial will help you to install kubectl on your macOS.


  • Brew

Install Kubectl with the Brew package manager

Step 1. Open a terminal and update Brew:

brew update

Step 2. Upgrade new packages if any:

brew upgrade

Step 3. Install kubectl:

brew install kubectl 

Step 4. Verify the installation:

kubectl version --client

Uninstall Kubectl

brew uninstall kubectl


There are multiple ways to install kubectl on macOS, but the easiest and more effective way is to do it through brew. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.