Member-only story

Getting started with Kubernetes and Docker with minikube

Yuchen Z.
11 min readJun 9, 2019

--

In this block post, we’ll package applications with Docker containers, and then deploy them with Kubernete in a local minikube cluster. We’ll cover some Kubernete concepts such as Pod, Deployment, Service, etc. Source code is published here.

This is a semi-rerun of an older blog Developing Microservices with minikube. If you are into Typescript and want some step-by-step level of details, check that out instead. We focus more on Kubenetes and Docker instead of building applications here.

There are 3 apps: auth, gateway, and books. They are implemented in 3 different ways.

  • Typescript + express.js
  • Scala + finch
  • Python + flask

They all work similarly, with some very minor differences in how we publish docker images. Now let’s get started.

Prerequisites

Install the following: kubectl, docker, minikube.

brew update
# Install kubctl
brew install kubectl
# Install docker, docker-compose, docker-machine
brew cask install docker
brew install docker-compose
brew install docker-machine
# Install minikube
brew install minikube

Install VM virtualbox.

brew cask install virtualbox

--

--

Responses (3)