In this article, we are going to learn how to filter and delete specific messages in the SQS queue before they are read by the consumer Sometimes we accidentally push the wrong messages to SQS or for some reason we want to stop the messages in the middle before the[...]
Read moreAuthor: Sarav AK
Kubernetes Headless Service - Introduction and examples | Devops Junction
Kubernetes headless service is a Kubernetes service that does not assign an IP address to itself. Instead, it returns the IP addresses of the pods associated with it directly to the DNS system, allowing clients to connect to individual pods directly. This means that each pod has its own IP[...]
Read moreGIT Pre commit hook and Secret validation - Tools | Devops Junction
A recent Security incident at Github where the engineering team accidentally committed their private security key into their public repository alarmed other engineers and organizations Tech Giant and a pioneer and catalyst of Git, themselves have made a blunder. that cost them to re-create their private key and it has[...]
Read moreKubectl PortForward Examples - How to PortForward in K8s | Devops Junction
Kubectl is a command-line tool used for managing Kubernetes clusters. It provides a way to interact with the Kubernetes API, deploy applications, and monitor resources running on a Kubernetes cluster. One of the valuable features of kubectl is the port forwarding functionality, which allows users to access services running inside[...]
Read moreK8s 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 lifecycle. In the following diagram, I have tried to represent the[...]
Read moreKubectl 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 proportionally There are a lot of cost optimization ideas[...]
Read moreAWS 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 actions on behalf[...]
Read moreSQL queries for mysql RDS - CPU 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 complete black box,[...]
Read moreHow 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[...]
Read moreParsing 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 regular NGINX with custom functionalities and features[...]
Read more