Skip to content
Snippets Groups Projects
Commit fe9fb1df authored by Mike Hanby's avatar Mike Hanby
Browse files

Updated README.md to include Mac kubectl install

parent 1d2d60ee
No related branches found
No related tags found
1 merge request!2Updated README.md to include Mac kubectl install
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment