Setting up your development environment using minikube
In this tutorial, we will go through the steps of setting up you local development environment to run minikube.
We will be using minikube extensively to deploy and serve our ML models
Let’s Begin!
Step 1. Install minikube
For Mac Users; use brew to install minikubebrew install minikube
For Windows:
I highly recommend winget, the comprehensive Windows Package Managerwinget install minikube
For Linux users:
a. Download the package — rpm, deb or binary
b. Install the package
As I am on an Ubuntu machine, relevant commands are as below:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
Detailed Steps and other guidance is available at minikube Official Site
Step 2. Install kubectl
kubectl
is the Kubernetes command-line tool that lets you interact with your Kubernetes clusters
For Mac; again use brewbrew install kubectl
For Windows: you can download the installer to install kubectl
For Linux users, download and install kubectl using the commands similar to below (depicted for Ubuntu installation)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Detailed Steps and other guidance is available at Kubernetes Official Site
Step 3. Start minikube
Ensure both minikube and kubectl are installed and ready to use
minikube version
kubectl version --client
Once installation steps are done, let’s start minikube. Open a terminal window (command-prompt on windows, terminal on mac / Linux)
minikube start
note: this step will take time depending on your environment specifications — cpu, memory and network
Step 4. Validate cluster info and nodes within minikube
Kubectl can now be used to validate the minikube cluster and get details on nodes within the cluster
kubectl cluster-info
kubectl get nodes
and that’s it! you have now successfully setup a minikube local environment