I install the latest version of Kubernetes with the following command on Raspberry PI 3 running Raspbian Stretch.
$ curl -s https://packages.cloud.google.com
on Mac to install v1.8.5 of kubernetes follow the below steps
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.8.5/bin/darwin/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl