In this blog, we will see how to provision and configure Kubernetes Cluster on AWS. We will automate this process using Ansible.


1. Launch 3 EC2 instances on AWS.

2. Set up dynamic inventory to fetch AWS instance IPs.

3. Configure the Master node

4. Configure the Worker nodes

5. Allow the worker to join the cluster

Step 1: Launch EC2 instances

For Launching the instances we will simply run a play on localhost. For connecting with AWS, we will require the IAM user credentials of our account. You can get your credentials by creating an IAM user. Copy the Access_key and Secret_key in a…

If you are familiar with Ansible — the amazing configuration management tool but haven’t yet played around Ansible roles, I must tell you that you are missing out the fun.

To help yourself overcome the struggle of managing huge tasks files with variables, handlers and templates, I recommend you reading this till end.

This blog will give a brief introduction to Ansible Roles and walk you through a simple yet elegant demonstration.

Ansible roles is the way you can separate your tasks, variables and related files in a nice file structure. The tasks for the end configuration to achieve is…

Please refer to my previous article where I configured Docker using Ansible.

This article extends that demonstration to further retrieve the new container IP and updating the inventory so that further configuration could be done inside the containers.

So, let’s get started!

Step 1: Get your inventory done correctly.

I created an empty host group [containers] at the beginning, here is where my container info will be loaded.

Step 2: If you followed this blog, you already know a lot.

The blog gives a detailed demonstration on how we can launch a container with Ansible. …

This article will walk you through all the steps that you must do to configure docker on Ansible managed nodes. Further, it talks about how you can pull the httpd image from the public registry to configure a web server on a container and expose it to the public.

Start by setting up the Ansible Controller node — edit the hosts’ file to create appropriate host groups to include the managed nodes that are to be a part of this Configuration.

I have a [docker] host group as follows:

HAProxy is a Load Balancer, that balances load on a server by distributing it across the replicated servers, in a round robin fashion.

This article demonstrates how you can set up haproxy and dynamically add the IPs of the replicated server as they join the inventory of the webserver list.

What this Demonstration include?

1. Installing software like httpd and PHP on a list of hosts to configure web server

2. Copying a simple PHP script in the document root of the servers

3. Initiating the web service

4. Installing the haproxy software

5. Updating the Configuration file to add…

We all know how Cloud Computing is ruling the market today, with business-critical functions and infrastructure being migrated from the legacy infrastructure to the Cloud. This is because of the immense functionality and ease of use that Cloud Providers like AWS, Azure, Google have built for us.

This article briefly talks about how can one create a high availability architecture to reduce the latency involved in serving the requests.

A Quick Overview:

The architecture includes-

1. Webserver configured on EC2 Instance

2. Document Root(/var/www/html) made persistent by mounting on EBS Block Device.

3. Static objects used in code such as…

In this blog, we will understand how unnecessary restarts of a web server can be avoided by using handlers in the Ansible playbook.

We are trying to set up an httpd server using Ansible. We want to automate the restarting of the web server in case any change occurs in the configuration file. This can be achieved using the template module. We can replace the new version of the configuration file with the old one by using the template module and using the jinja templates to make edits to the file.

Later, the service can be restarted using the service…

Today, we will discuss how can you configure a Hadoop cluster using Ansible.

So, let’s get started.

The Setup: I have two nodes, one of which is the controller node, and the other is the target node. These nodes are Linux-based RHEL systems. I have configured local DNS using the /etc/hosts file by mentioning the DNS name and the IP address of the node. The controller node is called the master, and the target node is called the node1.

I also have configured password-less login via SSH from the controller node to all the target nodes. …

As we advance in the race of technology, more and more manual and monotonous tasks are automated. The IT landscape has revolutionized the way humans have been doing tasks traditionally. Let’s not forget about yet another milestone in the technological sphere that has significantly contributed to eliminating repetitive and manual tasks in IT industries.

Yes, I am referring to Ansible.

So, what is it?

Simply put, it is a tool that automates provisioning, configuration and application deployment, intra-service orchestration and many other IT needs.

Let’s take an example. Suppose you have a system on which you want to configure a…

Integrating LVM with Hadoop!

We shall talk about Hadoop to better understand the uses of LVM. So, if you are new to Hadoop, I recommend reading my previous article on The Basics of Hadoop.

We know that the Hadoop master node running the NameNode process takes care of all the filesystem namespace of HDFS, while the slave nodes provide actual storage to store the files and folders.

The purpose of this blog is to understand the basic concept of Logical Volumes and how we can use it to provide storage for the HDFS.

Suppose that you have two hard disks…

Inshiya Nalawala

Student | ARTH Learner | Exploring Technologies

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