Appendix C. Installing Minikube & Kubectl
Kubernetes is a complete container orchestration platform, allowing engineers to run a fleet of containers across multiple machines. Minikube is a simplified version that makes the process of running it locally on a single machine easier. The official Kubernetes docs maintain an Install Tools page with installation instructions, but installation instructions have been repeated here for your reference.
Linux: Debian Package and Precompiled Binary
Minikube is available by installing a Debian package (RPM packages are also available). Kubectl, on the other hand, can be installed by downloading a binary and putting it in your $PATH. Run the following commands to install Minikube and Kubectl on a Debian-based (including Ubuntu) machine:
$curl -LO https://storage.googleapis.com/minikube/releases\/latest/minikube_1.9.1-0_amd64.deb$sudo dpkg -i minikube_1.9.1-0_amd64.deb$curl -LO https://storage.googleapis.com/kubernetes-release\/release/v1.18.2/bin/linux/amd64/kubectl$chmod +x ./kubectl$sudo mv kubectl /usr/bin/
macOS: Install via Homebrew
Docker Desktop already comes with Kubernetes! That said, by default it’s disabled. To enable it, launch the Docker Desktop tool by clicking the Docker icon in your menu bar and then clicking the Preferences option. In the screen that comes up, click the Kubernetes tab. Finally, click the Enable Kubernetes checkbox and then click Apply & Restart. It may take a couple of minutes, but the UI should ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access