From fe9fb1dfd9f728611ed8a5cc14b22b59443cd541 Mon Sep 17 00:00:00 2001
From: Mike Hanby <mhanby@uab.edu>
Date: Thu, 13 Apr 2023 10:23:00 -0500
Subject: [PATCH] Updated README.md to include Mac kubectl install

---
 README.md | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 5eafdb2..51e93ac 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,21 @@ Start by cloning this repo to your local machine and work in that dir.
 You need the kubectl command to control k8s.  Install it according to your
 platform requirements.
 
-On Ubuntu you can `sudo snap install kubectl`
+> [Note from](https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/): You must use a kubectl version that is within one minor version difference of your cluster. For example, a v1.27 client can communicate with v1.26, v1.27, and v1.28 control planes. Using the latest compatible version of kubectl helps avoid unforeseen issues.
+
+We are currently on version `1.24`
+
+- On Ubuntu you can `sudo snap install kubectl` (How to install specific version of a `snap`?)
+- Install v1.24 [kubectl on Mac w/ Apple Silicon](https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/). For Intel Macs, replace `arch="arm64"` with `arch="amd64"`
+
+  ```shell
+  ver="1.24"
+  arch="arm64"
+  curl -LO "https://dl.k8s.io/release/v${ver}.0/bin/darwin/${arch}/kubectl"
+  chmod +x kubectl
+  curl -LO "https://dl.k8s.io/release/v${ver}.0/bin/darwin/${arch}/kubectl.sha256"
+  echo "$(cat kubectl.sha256)  kubectl" | shasum -a 256 --check
+  ```
 
 ## Copy the example kube config 
 
-- 
GitLab