
K8s Probes - Liveness, Readiness, Startup Examples | Devops Junction
Kubernetes probes are a mechanism for determining the health of a container running within a pod. Kubernetes supports three types of probes: Liveness, Readiness, Startup. Each of these probes serves a different purpose and helps Kubernetes manage the container...

Kubectl Scale down Pods and Save Cost - Kubernetes | Devops Junction
As the industry is going heavy on Kubernetes, as more and more monoliths are converted to microservices and onboarded to Kubernetes, as the number of namespace and nodes increase in your Kubernetes cluster, the cost of running Kubernetes would also increase...

AWS CLI assume role - How to use directly or as Profile | DevopsJunction
AWS CLI (Command Line Interface) is a powerful tool that allows users to interact with various AWS services through the command line. One of the essential features of AWS CLI is the ability to assume an IAM role, which allows users to access AWS resources and perform...

SQL queries for mysql RDS - To Debug Usage, Locks, Waits and Kill | AWS
In this article let me share some SQL queries for RDS MYSQL troubleshooting It is true that when you are choosing RDS or any managed database, you cannot fully control or customize your database. There are few granular restrictions and constraints But AWS RDS is not a...

How to handle InnoDB: Unable to lock ibdata1 error - MYSQL
I have recently migrated a self-hosted MySQL from an EC2 instance to another using AMI copy and restore. and I have seen this error on the newly launched EC2 instance. Coming from a no-DBA background, I spent a day finding the root cause of this I am putting it here...

Parsing HTTP POST data with NGINX OpenResty LUA | Devops Junction
In this article let us learn how to parse through the HTTP post payload in Nginx Openresty with LUA language OpenResty is an nginx distribution which includes the LuaJIT (Just in Time) interpreter for supporting Lua scripts. this LUA script helps you extend your...

NGINX Dynamic IP address upstream - DNS Cache issue | How to solve
NGINX has become a standard for reverse proxy implementation, At least 20% of the internet is powered by NGINX webserver as the stats suggest I presume you all know what is a reverse proxy and forward proxy and how it works. Let us move on to the objective of this...

AWS SQS Dead Letter Queue Reprocessing script | Devops Junction
In this article let us see how to reprocess messages which are stuck in SQS Dead Letter Queue At times, Even if your messages are valid, due to Lambda Concurrency or other issues your message lands in Dead Letter Queue While there are a few ways to reprocess messages...

How to Calculate Cost per Lambda Function - AWS | Devops Junction
Serverless, as the name suggests takes the hosting and complex infrastructure elements away and helps developers and programmers to deploy their code to Production. All the underlying infrastructure, availability, and scaling would be taken care of by the service...

Why Failed or Evicted pods are not deleted and How to delete them
In Kubernetes, Evicted or Failed Pods are not cleared until the sum of total terminated pods reaches a certain number This numeric value is by default set at 12500 on standard Kubernetes including managed services like EKS, AKS, GCP etc and it is set at the Control...

Kubernetes Max PODS per Node calculator - AWS EKS | Devops Junction
Managed Kubernetes such as AWS EKS come with their own limitations. One such limitation is how many PODs a Worker node can have based on the type of EC2 instance For example, t3.medium can have only 17 pods t3.large can have 35 pods These limitations are there for...

How to Apply Pending Modifications in RDS - AWS | Devops Junction
This short article lets us see how to apply pending modifications to AWS RDS. Sometimes when we modify the RDS database instance for reasons such as Changing the Instance type Changing Parameter Group Scale up the Disk Size allocated and the maximum disk Size...

How to Launch LAMP stack on Google cloud | DevOps Junction
In this article, we are going to see How to quickly install and configure a lamp stack in google Cloud with a few simple steps Before we begin. Let us start with some basics. What is LAMP? In the dev world we hear the acronym LAMP stack tossed around, but what is it...

Why we need POD in Kubernetes | Devops Junction
In this article let us explore the reasons why we need POD in Kubernetes and why cannot we deploy the container directly to Kubernetes. Before we start with our reasoning, Let us refresh our memory with what is POD POD ( as in a pod of whales or a pod of peas)...

KubeNodeUsage -Disk, Memory, CPU Usage viewer Kubernetes | DevopsJunction
Kubernetes Node Usage or KubeNodeUsage is a CLI tool to get the Memory, CPU and Disk Usage of Kubernetes Nodes it is designed in Python and relies on the kubectl installed in your local. No Authentication data are directly handled. You can think of Kube-Node-Usage as...
Articles for DevOps Beginner
Clone EC2 instance using Terraform - How to | Devops Junction
This is a familiar requirement for everyone I believe. How to clone an EC2 instance and create a new instance with the same configuration. While we...
Pulumi AWS Example - Creating VPC, Subnets, EC2, Bastion host
In this article, we are going to see how to set up compute infrastructure consisting of virtual private cloud, subnets, internet gateway, NAT...
Terraform For Each Examples - How to use for_each | Devops Junction
In this post, we’ll try to cover Terraform looping constructs. We’ll cover the looping constructs that specifically work at the resource level. They...
Terraform Create Multiple EC2 with different Configs - for_each and count together
Those who have been using Terraform might already know that you can create multiple numbers of the same resources with the help of count or for_each...
Terraform AWS EC2 user_data example - aws_instance| Devops Junction
In this article we are going to see how to create AWS EC2 instance with user_data. While launching AWS Ec2 instances we might want to add some...
How to Deploy Tomcat on Kubernetes Step by Step
Overview In this post, we are going to see how to deploy tomcat on Kubernetes. How to Deploy Tomcat based web application into Kubernetes. We are...
Terraform AWS Example - Create EC2 instance with Terraform
Terraform, An outstanding and innovative product from hashicorp and it is a leader in Infrastructure as Code tools Segment. Before I go any...
Ansible EC2 Example - Create EC2 instance with Ansible
Infrastructure as Code is getting all attention it deserves and everyone is trying to find their way to the `Completely automated Infrastructure...
Docker network between containers - Docker Networking Example
In this post we are going to see How to establish docker network between containers, How to Link Docker Containers, How to Access one Container from...
Ansible Playbook Examples - Sample Ansible Playbooks | Devops Junction
In this post, we are going to see examples of Ansible playbook and various different modules and playbook examples with various modules and multiple...
Packer AWS Example with Terraform
In this article, we are going to see a quick packer aws example setup and provide the steps to create an AWS Image (AMI) using Packer and we are...
Ansible AD HOC Command Examples - Ansible Cheat Sheet | Devops Junction
Ansible Vagrant Example - Testing Ansible with Vagrant | Devops Junction
In this article, we are going to see how to use Vagrant to create a development of Virtual machines and start practising Ansible. This is A Beginner...