Skip to content
Snippets Groups Projects

Updated README.md to include Mac kubectl install

Open Mike Hanby requested to merge mhanby-main-patch-36604 into main
1 file
+ 15
1
Compare changes
  • Side-by-side
  • Inline
+ 15
1
@@ -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
Loading