Sign in

Technical Writer | Tech Enthusiast | Open source contributor
Photo by Michael Jasmund on Unsplash

Pod is the smallest instance in Kubernetes that you are working with. This post will cover everything you need to learn about pods and how to deploy it.

What is a pod why not containers?

We use pods in k8s to deploy our application. Someone may ask why not to use containers in k8s and the answer…

Photo by Louis Reed on Unsplash

Kubernetes is a container orchestration tool from google and it is the most popular container orchestration tool currently which is provided by most of the cloud service provided as well. There are some more such as Docker Swam, Nomad, OpenShift. …

Photo by Fabius Leibrock on Unsplash

Micro-services and containers are more popular in this era of technology when it comes to manage and deploy large systems.

Hello Developers, This is the first post of a series of kubernetes. First let’s check what is kubernetes and why we use it.

Need of Kubernetes

Docker make our life easier when it…

Photo by Kelly Sikkema on Unsplash

Singleton design pattern is the one of easiest design pattern and it is a creational design pattern. Let's go through what is singleton, where should we user it, how to implement it and implementation in goLang.

What is singleton design pattern

It says single. Yes singleton design pattern use only single object throughout the application…

Photo by CHUTTERSNAP on Unsplash

Should I make the object in my own or let some factory to make it?

Programs must be expandable and they eventually expands hence you need to write codes which can be expand without much effort.

Factory design pattern is a creational design pattern to predefined blueprint of a solution…

Photo by Markus Winkler on Unsplash

This is a simple approach which we need on daily basis which is find and kill a port.

Following are the steps to find and kill the port.

  1. You should find the process id which is known as pid using the port as follows.
sudo lsof -i :<port_id>

Following is…

Photo by Kelly Sikkema on Unsplash

Let’s do those with command line interface which is much easier.

First thing first. You should update and upgrade first.

$ sudo apt update
$ sudo apt upgrade

Install git

$ sudo apt install git

Yes it is that simpler.

Install npm

$ sudo apt install npm

Install VS code

$ sudo apt install software-properties-common apt-transport-https wget
$ wget –q -O- | sudo apt-key add -
$ sudo add-apt-repository “deb[arch=amd64] stable main”
$ sudo apt install code

Then simply run the VS code using code . .

Install mysql-server

$ sudo apt install mysql-server

Hope this will be helpful.

If you have found this helpful please hit that 👏 and share it on social media :).

Photo by Nihal Demirci on Unsplash

I love Ballerina functions since it gives more flexibility and super easy to do a task.

This will cover basics of Ballerina language functions and following is the basic structure of a function.

function add(int numOne, int numTwo) returns int {
return numOne + numTwo;

Let’s play with Ballerina…

Photo by Jeffrey Wegrzyn on Unsplash

Stream API is data flows from one side to other side.

Stream API is introduced in Java 8 in order to bring functional programming into Java.

What Stream API is

  • It is a data pipeline.
  • It use to process collection of objects or arrays.
  • It will not changed the original source.
  • It is efficient…

Photo by Thomas Franke on Unsplash

Is it use for data hiding? Yes it is Encapsulation is data hiding. But what is the point of hiding data.

  • Encapsulation limits the access for data.

Some cases we need to provide read only access for that we use encapsulation. Let’s take an example — For a student, student…

Yashod Perera

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