Simulating a data center with Kubernetes using virtual machines in your computer

Kubernetes

  • Modifications and Improvements is hard in large monolithic applications
  • No proper load balancing and requests are handled in generic threads in main server
Kubernetes architecture

Let’s setup VMs

Creating Kubernetes master

Master and Node VMs in Virtualbox

Adding bridged adapter

Network configuration

Mm.. how to setup Kubernetes then (How to make the cluster)

Configuring Kubernetes master

sudo apt-get install docker.io
sudo service docker start
$ sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
Default -> Manage Environments -> Add Environment

Adding a Kubernetes Node

sudo apt-get install docker.io
sudo service docker start

Running a sample microservice

Conclusion

--

--

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