DEV Community

Prepare MacOS for interacting with AWS EKS

Amazon EKS clusters require kubectl and the aws-iam-authenticator binary to allow IAM authentication for your Kubernetes cluster.

If you do not already have Homebrew installed on your Mac, install it with the following command.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Enter fullscreen mode Exit fullscreen mode

INSTALL TOOLS

  • kubectl
brew install kubectl
Enter fullscreen mode Exit fullscreen mode
  • aws-iam-authenticator
brew install aws-iam-authenticator
Enter fullscreen mode Exit fullscreen mode
  • jq
brew install jq
Enter fullscreen mode Exit fullscreen mode
  • envsubst
brew install gettext
brew link --force gettext
Enter fullscreen mode Exit fullscreen mode

Verify

for command in kubectl aws-iam-authenticator jq envsubst
  do
    which $command &>/dev/null && echo "$command in path" || echo "$command NOT FOUND"
  done
Enter fullscreen mode Exit fullscreen mode

eksctl - a CLI for Amazon EKS

Instead of using AWS console to create EKS cluster, you can use a more simpler but powerful tool.

eksctl is a simple CLI tool for creating clusters on EKS - Amazon’s new managed Kubernetes service for EC2. It is written in Go, and uses CloudFormation.

brew install eksctl
Enter fullscreen mode Exit fullscreen mode

Now you are ready to use eksctl learn more here https://eksctl.io/

Bouns - Lens

I would recommended Lens - https://k8slens.dev/desktop.html - to manage and troubleshoot your K8s clusters, super easy to use, rich feature and free.

Lens

Top comments (0)