Preparing the environment
Firstly, kubectl has to be installed. In major Linux distributions (such as Ubuntu or CentOS), you can just search for and install the package named kubectl via the package manager. In macOS, we can choose to use Homebrew (https://brew.sh/) to install it. Homebrew is a useful package manager in macOS. We can easily install Homebrew via the /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" command. Then, we can run brew install kubernetes-cli to install kubectl via Homebrew.
Let's now start to provision a Kubernetes cluster. The easiest way to do this is to run minikube (https://github.com/kubernetes/minikube), which is a tool to run Kubernetes on a single-node locally. ...
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