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.

source: https://unsplash.com/photos/oZPwn40zCK4

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 minikube
brew install minikube

For Windows:
I highly recommend winget, the comprehensive Windows Package Manager
winget 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 brew
brew 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

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Setting up Your Programming Environment For C using Code::Blocks

Inventor iLogic Best Practices and Fundamentals for Success

Time Travel Debugger for JetBrains IDEs

ESP32 Bluetooth

The Use of LOV for Teamcenter Object Creation in Mendix

jAPP — 48h to build a StartAPP

What is Elastic Search? Benefits of Elastic Search in The Magento 2 Store

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Decoded Bytes

Decoded Bytes

More from Medium

How to Set-up Airflow Environment Using Docker

Build and monitor your FastAPI microservice with Docker, Prometheus and Grafana. [Part-1]

Postgres, Connections to all databases refused

Airflow Integration Testing using Docker Compose