Skip to content
Snippets Groups Projects
Commit ec2e0766 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

moved kubectl fix secion after the docker for mac install.

parent 687bef90
No related branches found
No related tags found
No related merge requests found
......@@ -18,21 +18,21 @@ Docker CE Edge installer comes with experimental features in Docker Engine enabl
Go [docker-for-mac Edge](https://download.docker.com/mac/edge/Docker.dmg) to install it. This tutorial is tested with Docker for Mac using Edge channel.
## Enable the Kubernetes cluster
Click the `Docker` icon in the status bar, go to `Preferences`, and on the `Kubernetes` tab, check *Enable Kubernetes*. This will start a single node Kubernetes cluster. This might take a while - have a cup of tea and wait for the Kubernetes cluster to be ready.
Docker for Mac Edge kubernetes integration installed `kubectl v.1.9` command in /usr/local/bin, which overrides what's installed in by brew. We need the latest `kubectl`
for some of the Kubernetes feature to work. Let's fix it and make sure `kubectl` version is 1.10.x:
```console
$ rm /usr/local/bin/kubectl
$ brew reinstlal kubectl
$ brew reinstall kubectl
$ kubectl version -c
Flag shorthand -c has been deprecated, please use --client instead.
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-13T22:29:03Z", GoVersion:"go1.9.5", Compiler:"gc", Platform:"darwin/amd64"}
```
## Enable the Kubernetes cluster
Click the `Docker` icon in the status bar, go to `Preferences`, and on the `Kubernetes` tab, check *Enable Kubernetes*. This will start a single node Kubernetes cluster. This might take a while - have a cup of tea and wait for the Kubernetes cluster to be ready.
## Install kubectl and kubectx
[Kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) is a Kubernetes cli to interact with kubernetes cluster. [kubectx](https://github.com/ahmetb/kubectx) helps you switch between clusters back and forth.
......
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