Kubernetes for Serverless Applications
上QQ阅读APP看书,第一时间看更新

Ubuntu 17.04

Unlike the macOS and Windows version, we will not be using a package manager to install Minikube on Ubuntu 17.04. Instead, we will just be downloading the binaries directly from the project page. To do this, simply run the following command:

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.22.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

Minikube will be downloaded, will have execute permissions set, and will be moved to /usr/local/bin/ so it is in a system path.

Now that Minikube is installed, we need to download kubectl. During the macOS and Windows installation, this was taken care of by the package manager; luckily, the process is pretty much the same as the command we just ran to install Minikube:

$ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl

Once installed, you should again be able to run the following command to confirm the version of Minikube installed:

$ minikube version

When I ran the command, it returned v0.22.2, as seen in the following screenshot: