From c2b74acd1f575014329a1e49e987df7e8073ad1f Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Tue, 4 Apr 2017 13:50:47 -0700 Subject: [PATCH] hello-minikube: Simplify kubectl installation instructions for macOS People are hitting issues copy-pasting the complicated way to install `kubectl` and we're suggesting them to `sudo mv` binaries to /usr/local/bin. That is not very ideal. Instead suggesting users to use Homebrew. I think it's ok for this tutorial, as the tutorial already uses Homebrew to install other stuff, plus it's a much better way than `sudo mv`ing. Closes #2478. Signed-off-by: Ahmet Alp Balkan --- .../tutorials/stateless-application/hello-minikube.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/stateless-application/hello-minikube.md b/docs/tutorials/stateless-application/hello-minikube.md index 70fed7db16..41d5fd87d7 100644 --- a/docs/tutorials/stateless-application/hello-minikube.md +++ b/docs/tutorials/stateless-application/hello-minikube.md @@ -54,7 +54,9 @@ the [Minikube installation guide](/docs/getting-started-guides/minikube/). Use `curl` to download and install the latest Minikube release: ```shell -curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ +curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 && \ + chmod +x minikube && \ + sudo mv minikube /usr/local/bin/ ``` Use Homebrew to install the xhyve driver and set its permissions: @@ -65,14 +67,13 @@ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docke sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve ``` -Download the latest version of the `kubectl` command-line tool, which you can +Use Homebrew to download the `kubectl` command-line tool, which you can use to interact with Kubernetes clusters: ```shell -curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl -chmod +x ./kubectl -sudo mv ./kubectl /usr/local/bin/kubectl +brew install kubectl ``` + Determine whether you can access sites like [https://cloud.google.com/container-registry/](https://cloud.google.com/container-registry/) directly without a proxy, by opening a new terminal and using ```shell