Deploying a sample Microservice Application using Kubernetes and Istio Service Mesh — Part 2
This article is the first of the 3 part series
- Install Ubuntu 20.01 on Oracle VirtualBox
- Install Docker & Kubernetes using Minikube on Ububtu OS
- Install Istio and Deploy the sample Microservice application
Part 2: Install Docker & Kubernetes using Minikube on Ububtu OS
Approx. time required : 60–90 minutes
Start the VM and open a New Terminal (Ctrl + Alt + T)
Install a few basic tools
sudo apt updatesudo apt install -y vim curl
Install and enable Docker to start automatically on boot
sudo apt install -y docker.iosudo systemctl start dockersudo systemctl enable dockersudo usermod -aG docker $USER
Restart the Ubuntu OS for the new Group changes to take effect
sudo reboot
Verify if docker is installed successfully
docker version
If everything went well, you should see an output something like this
Disable Swap Memory
sudo swapoff -asudo vim/etc/fstab (Inside this file, comment out the /swapfile line)
Download and Install latest version of Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64sudo install minikube-linux-amd64 /usr/local/bin/minikubeminikube start
A successful minikube startup should look something like this
(In case you run into an error that says “Exiting due to RSRC_INSUFFICIENT_CORES: Docker has less than 2 CPUs available, but Kubernetes requires at least 2 to be available”, follow the below steps to fix it)
- Power off the Ubuntu OS
- Click on Settings for your Virtual Machine in Virtual Box Console
- Select System and under the Processor Tab, increase the processor count to 2 (or more)
- Save and start the Virtual Machine
Verify the minkube startup status
minikube status
Install kubectl for accessing the kubernetes api
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key addsudo apt-add-repository “deb http://apt.kubernetes.io/ kubernetes-xenial main”sudo apt install kubectl
Verify kubernetes cluster status
kubectl get nodes
This completes the entire setup of Part-2 and you should be all set to start the next phase.
Thank You everyone for viewing this article. Please share and leave your comments.