Sign in

In this article, I'm going to explain how to create terraform modules...

To understand terraform modules, you need to have basic knowledge of Terraform only then you can understand terraform modules.

First, let me give you a little bit of idea about Terraform ;

What is Terraform?

Terraform is an infrastructure as code (IaC) tool that allows you to build, change, and version infrastructure safely and efficiently. This includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. …


The term “k-means” was first used by james macqueen in 1967 as part of his paper on “some methods for classification and analysis of multivariate observations”. the standard algorithm was also used in bell labs as part of a technique in pulse code modulation in 1957. it was also published by in 1965 by e. w. forgy and typically is also known as the lloyd-forgy method.

what is k-means?

clustering is the task of dividing the population or data points into a number of groups such that data points in the same groups are more similar to other data points in the same…


When it comes to visualizing our metrics (collection of data) it’s very hard to visualize in Prometheus, In my last article I talked about Prometheus and node-exporter https://kmahi2600.medium.com/deploy-monitoring-tool-prometheus-using-ansible-5f91165350aa.

What is Grafana?


What is Monitoring?

The Periodic tracking (for example, daily, weekly, monthly, quarterly, annually) of any activity’s progress by systematically gathering and analyzing data and information is called Monitoring. The target audience/beneficiaries must be defined along with what you are doing, and whether your activities are being implemented as planned or not.

Let’s take a simple example of monitoring..

Let’s say we have a huge system where we have Switch router, Firewall, Linux/Windows OS, DataBase Server, WebApp, and many other things are connected together, now here how can we check that everything is working perfectly or not if any system goes down how we…


In this article, I will explain what is javascript and what its uses.

so, let's start with this,

What is JavaScript?

JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.

JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. …


Now let’s start this Project;

Steps for this project:

  1. Launch 3 ec2-instances on AWS using Ansible.
  2. configure k8s cluster , one as master and two nodes as server/slave node
  3. use dynamic inventory to get ip of all the aws instances.
  4. then launch wordpress and mysql
  5. and finally expose the wordpress to connect to public world.

Step 1:

Creating an ansible playbook to launch ec2-instance;

Here created a file named , ec2_k8s.yml


Containers are a solution to the problem of how to get software to run reliably when moved from one computing environment to another. This could be from a developer’s laptop to a test environment, from a staging environment into production, and perhaps from a physical machine in a data center to a virtual machine in a private or public cloud.

While containers can be thought of as a next-generation approach to virtualization, they share one downside with virtual machines. …


Jenkins offers a simple way to set up a continuous integration or continuous delivery (CI/CD) environment for almost any combination of languages and source code repositories using pipelines, as well as automating other routine development tasks. While Jenkins doesn’t eliminate the need to create scripts for individual steps, it does give you a faster and more robust way to integrate your entire chain of build, test, and deployment tools than you can easily build yourself.

“Don’t break the nightly build!” is a cardinal rule in software development shops that post a freshly built daily product version every morning for their…


What is Ansible ??
Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code. It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration. Ansible was written by Michael DeHaan and acquired by Red Hat in 2015. Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks.

What is Ansible PlayBook ??
Playbooks are YAML files that express configurations, deployment, and orchestration in Ansible, and allow Ansible to…

Rahul

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