Posts

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 .

How to setup an Elastic Beanstalk Application on AWS

Elastic Beanstalk is one of the "computer" services in the Amazon Web Services (AWS) cloud. It allows us to easily manage and deploy applications. We don't have to understand or learn the services required to run our application. With Elastic Beanstalk, we only need to upload our application and Elastic Beanstalk takes care of the rest. Elastic Beanstalk supports applications developed in Java, .NET, Go, PHP, Python, Node.js and Ruby. Click here to read the complete version of this article written by me available on howtoforge .

How to setup EC2 Auto Scaling Group (ASG) on AWS

ASG(Auto Scaling Group) feature comes along with EC2 (Elastic Compute Cloud) service of AWS(Amazon Web Services) Cloud. An ASG contains a collection of EC2 instances that are treated as a logical grouping for the purpose of automatic scaling. An ASG enables to use EC2 Auto Scaling features such as health check replacements and scaling policies. It helps to maintain the number of instances in an ASG and automatic scaling of the EC2 Auto Scaling service. To create and ASG, we first need to create a Launch Configuration. Click here to read the complete version of this article written by me available on howtoforge .

AWS Lambda Function to Start and Stop an EC2 Instance

Lambda falls under “Compute” service in AWS (Amazon Web Services). Using Lambda we can code without provisioning or managing servers. Lambda automatically runs our code without requiring us to provision or manage servers. We just need to write the code and upload it to the Lambda Function. Lambda executes the code only when needed. It grows automatically supporting from a few requests to thousands of requests. We are charged for every 100ms our code executes and the number of times it is triggered. We are charged only for the compute time our code consumes and not charged when the code is not being executed. Click here to read the complete version of this article written by me available on howtoforge .

How to setup Elastic Container Registry (ECR) for Docker on AWS

Amazon Elastic Container Registry (ECR) is a managed container registry service of AWS. This service is found under “Compute” on AWS Console. This is used to store, manage, and deploy Docker Container Images. ECR is integrated with Amazon Elastic Container Service (ECS). With ECR, there is no upfront fees. We pay only for the amount of data we store in our repositories and data transferred to the Internet. Click here to read the complete version of this article written by me available on howtoforge .