Member-only story

How to Install Kubernetes (kubectl) on macOS?

Yatharth Chauhan
Yatri Cloud
Published in
4 min readOct 9, 2024

Installing and Setting Up Kubernetes (kubectl) on macOS.

In this blog, I’ll guide you through the easiest, step-by-step way to set up kubectl on your macOS device, making sure it’s straightforward, even for beginners. Let’s dive in!

Install and Setup Kubernetes (kubectl) on macOS?
Install Kubernetes (kubectl) on macOS

Step 1: Prerequisites

  • Have a Kubernetes cluster up and running.
  • Use a kubectl version within one minor version of your Kubernetes cluster.
  • For example, a v1.31 client should communicate with v1.30, v1.31, and v1.32 control planes. - Have access to your terminal.

Don’t have premium access?

To Get Full Access Join our Yatri Cloud Community: Join Now
Watch Videos on YouTube: Watch Now

Step 2: Install kubectl on macOS

You have multiple ways to install kubectl on macOS: via Homebrew, MacPorts, or manually using curl. Here's how you can do it.

Option 1: Install with Homebrew

This is the easiest and most recommended way if you're using Homebrew, a popular package manager for macOS.

  1. Open your terminal and run the following command: bash brew install kubectl or bash brew

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in Yatri Cloud

Learn about cloud computing and DevOps. We break down difficult concepts into understandable language so you can learn them easily and apply them to your projects. We will provide you with hands-on tutorials for popular cloud platforms like AWS, Azure, GCP.

Written by Yatharth Chauhan

13x Azure, 5x GitHub & LinkedIn Certified Youtuber @YatriCloud & Brand Creator Founder @WEBXELA & Gold MLSA

No responses yet

Write a response