Install Kubernetes on Ubuntu 18.10 via Minikube

In my upcoming posts, I am going to explain the basic about OpenShift and Installation Procedure. Before going to touch on those topics, I would like to explain a little bit about Kubernetes Basics. As I explained earlier in my post, OpenShift Internal components were derived from Kubernetes. Thus, it would be good to have knowledge of Kubernetes before start learning about OpenShift.

Kubernetes is a powerful Open-source Orchestration system for managing Containerized application in the Cluster environment. It was initially developed by Google.  It can run multiple Containers on a single machine and can manage the state of the Container applications with high degrees of flexibility, power, and reliability.

Why Kubernetes?

Docker is a tool that allows you to build and run the containerized application. However, it would fail to do so on its own when it requires to schedule a container on a specific node, to restart a container when it gets killed, and to move containers from one node to another node and so on. In such a case, Kubernetes would fill those gaps and manage the containers orchestration.

What Kubernetes Really do?

  • AutoScale Workloads
  • Blue/Green Deployments
  • Self-Healing
  • Seamless Upgrade and Rollback of Application
  • Manage Stateful or Stateless Application.

I hope! we are fair enough to know all about Kubernetes Basics. Now, let’s get your hands dirty by installing Kubernetes locally.

Prerequisites

  • Ubuntu Linux
  • VirtualBox
  • Minikube Binary
  • Basic Command line knowledge

I am going to run single-node Kubernetes cluster on VirtualBox VM.  Minikube is a tool which makes easy to run Kubernetes locally. To get started, you need to download the minikube binary from GitHub Repository. 

The following commands will help you to easily download minikube binary.

The next step is to bring up the Minikube VM on the VirtualBox. Just run the below command a

The displayed above command output confirms that Minikube has successfully started on VM. However, you need a kubectl command line tool to get access to Kubernetes.  Let’s use the curl command to download kubectl command.

Let’s run some of the kubectl commands to verify whether it is able to communicate to minikube.  The below command help you know the no of nodes running in kubernetes.

To know more about Minikube version, IP, Image, and so on. Just type the below command.

Conclusion

We discussed Kubernetes Basics and Minikube installation in this blog. Upcoming blogs, I will explain more about Pod, Service, Deployment and so on. Until then, keep rocking.

Thanks for reading my post. Do share the post if you like it and comment it if you have any doubt on the installation.

Leave a Comment

Your email address will not be published. Required fields are marked *

nine − 1 =