install kubernetes kubectl on mac

To install Kubernetes kubectl on macOS, you can use the Homebrew package manager. Open a terminal and run the following commands:

brew install kubectl

Once the installation is complete, you can verify it by running:

kubectl version --client

That's it! Now you have kubectl installed on your Mac.