Posts

Showing posts from January, 2021

How to create a Deployment in Kubernetes

Deployments represent a set of identical Pods. A Deployment runs multiple copies of the application. It automatically replaces any instances that fail. It helps to ensure that one or more instances of the application are always up and running. Deployments are managed by the Kubernetes Deployment controller. Deployments use a Pod template, which contains a specification for its Pods. A Kubernetes deployment is a resource object in Kubernetes that provides declarative updates to applications. Click here to read the complete version of this article written by me available on howtoforge .

How to take a Snapshot of a disk in Microsoft Azure Cloud

An Azure Snapshot is a read-only copy of the existing disk in the Microsoft Azure Cloud. We can create a snapshot of the OS or Data disk. This snapshot can be used as a backup. The snapshot can also be used to create a Virtual Machine. To create a Virtual Machine using a snapshot, it is better to shut down the VM before taking its snapshot. We can create a full snapshot or an incremental snapshot. Full Snapshot: It makes a complete read-only copy of the selected disk. Incremental Snapshot: It saves on storage costs by making a partial copy based on the difference between the last snapshot. This does not make the complete copy of the existing disk each time Click here to read the complete version of this article written by me available on howtoforge .

Setup a Kubernetes Cluster on AWS EC2 Instance with Ubuntu using kubeadm

In this article, we will see how to set up a Kubernetes cluster with 2 Worker Nodes and 1 Master Node on Ubuntu 18.04 LTS Servers. We will use the "kubeadm" tool to set up the cluster. Kubeadm is a tool built to provide "kubeadm init" and "kubeadm join" for creating Kubernetes clusters. Before we proceed with the creation of the cluster let's understand a few terms in brief. Docker: Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. Image: An image is a read-only template with instructions for creating a Docker container. Often, an image is based on another image, with some additional customization Container: A container is a runnable instance of an image. You can create, start, stop, move, or delete a container using th...

How to create a Terraform module

In this article, we will see how to create reusable modules in Terraform. Modules allow us to avoid code duplication. It means the same code can be used to create resources of the same type. By using modules you do not need to copy-paste your code to create multiple resources of the same type. For example, you can put the code inside a Terraform module and reuse that module in the staging and production environments, in this way we will be able to have both environments reuse the same code from the same module instead of writing the code multiple times. Click here to read the complete version of this article written by me available on howtoforge .

Create a Virtual Private Cloud (VPC) on AWS using Terraform

In this article, I will show you how to create a VPC along with Subnets, Internet Gateway, NAT Gateways, and Route Tables. We will be making 1 VPC with 4 Subnets: 2 Private and 2 Public, 2 NAT Gateways, 1 Internet Gateway, and 4 Route Tables. Before proceeding, I assume that you have a basic understanding of Terraform and VPC on AWS. Click here to read the complete version of this article written by me available on howtoforge .

How to setup Apache Tomcat cluster with 3 Nodes on Ubuntu

In this article, we will see how to set up a cluster of Apache Tomcat servers. We will be using 3 Ubuntu 18.04 EC2 Instances or VMs, here I have used EC2 instances. We will also see the steps to install Java since Apache Tomcat requires Java. The following are the details of my cluster. Cluster Details: Node1: Base Directory = /root/tomcat1, IP = 172.31.35.11 Node2: Base Directory = /root/tomcat2, IP = 172.31.39.120 Node3: Base Directory = /root/tomcat3, IP = 172.31.32.185 Click here to read the complete version of this article written by me available on howtoforge .