diff --git a/README.md b/README.md index 5eafdb261cd10cc1e1bacce62d996864bb8676bc..51e93ac8708b60841774eadd7bef71985e978d62 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