In this quick article, we are presenting you with the shell script to start and stop PostgreSQL DB instance. You can use these scripts as part of rc.d or init.dto be executed during the server shutdown and boot up. Feel free to modify it further to suit your needs. Hope[...]
Read moreAuthor: Sarav AK
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 want to launch multiple EC2 instances of the same configuration there are multiple ways we follow. Creating Auto Scaling Group or Launch Template Create[...]
Read moreKubectl Get Nodes with Instance Type and Arch - K8s | Devops Junction
In this post, we are going to give a quick command to list your worker nodes with their instance types and architecture. I have posted this for the Amazon EKS Kubernetes cluster but with slight modification, you can use the same approach for any other managed Kubernetes cluster too. While[...]
Read moreAnsible Slack - How to send Slack notification from Ansible
In this post let us quickly show you how to send slack notifications from the Ansible playbook. Being notified is always good instead of sitting and waiting for a task to complete and looking at the screen. Also if something fails, we can immediately look into it with a quick[...]
Read moreRedis - Get Memory Usage and TTL of all keys | Devops Junction
In this article, I am going to share a shell script to help you get the TTL (time to live) and Memory Usage of all the keys available in Redis DB Every tool/technology that we use in infrastructure comes with a certain cost of management. Redis, a memory-intensive caching solution[...]
Read moreAnsible Retry Examples - Retry a task until condition met | DevopsJunction
in this article, we are going to see how to retry an ansible task until it meets a certain condition or validation. It is more like do sometask until somecondition kind of setup available in all the programming and scripting languages Ansible lets you execute a task until a condition[...]
Read moreHow to restart all deployments in namespace - Kubectl | Devops Junction
Restart Namespace all Deployments after k8s v1.15 You can simply use the kubectl rollout restart command that takes care of restarting all the deployments in a namespace If you specify only the namespace and not a specific deployment, all the deployments in the namespace would be restarted kubectl rollout restart[...]
Read moreAWS EKS Load Balancer from Kubernetes Service | Devops Junction
In this article, we are going to see how to create internal and external load balancers using the Kubernetes service on EKS When we think about making an application or deployment available externally or internally over a Domain name We think of Kubernetes Ingress but that's not the only way to[...]
Read moreCreating EKS Cluster with SPOT instances - Terraform | Devops Junction
In this article, we are going to see how to create an EKS Cluster with SPOT and OnDemand instances using Terraform. If you have prior experience with AWS, you might know what is SPOT instances and ondemand instances are. Let us start with a quick introduction towards SPOT instances. Quick[...]
Read moreTerraform ebs_block_device example - Multiple EBS volumes AWS EC2
In this article, we will see an example of how to use ebs_block_device mapping with AWS EC2 instance This article would use the template of Multiple EC2 instance creation using for_each and count together. It is highly recommended that you read our previous article on how to create multiple ec2[...]
Read more