Managing Docker containers with the help of Kubernetes

Before we get started, let’s discuss the fancy word…
What is Kubernetes?

Image for post
Image for post

This brings us to the second question…
What is Docker?

Image for post
Image for post

Let’s get started with this exercise

Step 1:

Pick a Hypervisor.
(Option1)
Hyper-V can be installed in 4 steps:

  1. Select Programs and Features on the right under related settings.
  2. Select Turn Windows Features on or off.
  3. Select Hyper-V and click OK.
Image for post
Image for post

Step 2:

Start minikube using command, For Hyper-V →
minikube start — vm-driver=”hyperv” — hyperv-virtual-switch=<name_of_your_switch>

Image for post
Image for post
Image for post
Image for post

Step 3:

If you open up your Hypervisor (I am using V-BOX), we can verify that the minikube VM has been created.

Image for post
Image for post

Step 4:

Image for post
Image for post

Step 5:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Step 6:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Step 7:

So to fix this, we just need to change the type from Load Balancer to NodePort
We do this by:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Step 8:

This is the fun part, let’s check out what we made!

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Conclusion/Ending Points to talk about

Kubernetes also makes it very easy to update and scale applications. To update apps we can change the tags that the image use, and to scale we can increase the number of replicas used by our docker image/aka, the number of pods used by our service.

Image for post
Image for post
Image for post
Image for post

Written by

Aspiring DevOps Engineer

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