mac,

How to install kubectl on macOS

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

Kubectl stands as a powerful command-line tool which allows you to control your kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses, and view logs. This tutorial will help you to install kubectl on your macOS.

Prerequisites

  • Brew

Install Kubectl with the Brew package manager

Step 1. Open a terminal and update Brew:

brew update

Step 2. Upgrade new packages:

brew upgrade

Step 3. Install kubectl:

brew install kubectl 

Step 4. Verify the installation:

kubectl version --client

Uninstall Kubectl

brew uninstall kubectl

Conclusion

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.