Want to get hands-on Kubernetes? — Here we go.

Andreas Koop
Feb 1, 2019 · 3 min read

Kubernetes is a popular container orchestration platform. This post is a short summary & reference for getting hands dirty on your local machine — in my case on a macOS.

Since Kubernetes is made for real world production demands there is a special distribution for local machines named Minikube. It runs on a single-node cluster inside a VM.

Prerequites

Make sure you have the following developer tools installed.

  • VirtualBox (at the time of writing version 6.0 worked for me)
  • homebrew (at the time of writing version 1.9.3)

(on macOS 10.14.2)

Install Minikube

Installation of Minikube is easy as follows

Verify Minikube installation

Looking into VirtualBox you should see a running VM “minikube”.

Next lets turn on the dashboard (Kubernetes Web UI) to get some more insights of the running single-node Kubernetes Cluster (yes I know there is not much to see.

Test a container deployment

Now that there is a running Kubernetes Cluster lets see how to deploy some simple (good looking 😎) stuff

The sample container (grafana) is already running but only accessible by its internal IP address. To make it accessible from outside it must be exposed through a Kubernetes service.

On Minikube the container deployment now simply can be accessed by

With the default admin / admin you are able to start exploring Grafana. e.g. Visualizing some metrics of the TestDB.

Clean up

Do not forget to free resources on your machine

Summary

With a handful commands a single-node Kubernetes Cluster is up and running. It is the smallest possible Kubernetes installation (Minikube) . Do not run this in production.

This Post is brought to you by enpit.de from our lovely feelgood-workspace.com. Follow us on instagram.com/enpit for more cool 😎 things.

Further information

enpit-developer-blog

From time to time, we post about the aspects that concern…

enpit-developer-blog

From time to time, we post about the aspects that concern, amaze and suprise our developers during their day-to-day work.

Andreas Koop

Written by

Developer, Architect, Enabler, CEO at enpit.

enpit-developer-blog

From time to time, we post about the aspects that concern, amaze and suprise our developers during their day-to-day work.