When you are working with AWS Cloud infrastructure and when you have 100s of instances to manage in multiple accounts. You might know how hard it is to get the private IP or the public IP info or any other details of a particular EC2 instance Let's say your entire[...]
Read moreAuthor: Sarav AK
Ansible SystemD module Examples - Devops Junction
Ansible SystemD module helps to control the systemd units such as services and timers created on the Linux server. SystemD is a daemon that manages the services and timer units on the Linux system and we mostly interact with it using the following ways service file systemctl command journalctl command[...]
Read moreKubernetes restart daemonset - kubectl | Devops Junction
In this quick article, let us learn how to restart the Kubernetes DaemonSet and all the pods created by the DaemonSet. Before we move on to the objective, here are some basics. real quick. DaemonSet is to deploy a specific application/feature to your Kubernetes cluster and to make sure it[...]
Read morekubectl exec examples - Execute Shell commands into a POD | K8s
In this article, we will learn in detail how to exec shell commands on the container or pod using kubectl. We will learn how to execute bash or any shell commands using kubectl and exec any command into a container or pod Let us start, Before we begin, all the[...]
Read moreHow to check Kubernetes and Kubectl Version | Devops Junction
How to check the Kubernetes and Kubectl Version using the kubectl command line that's the objective of this article. As you know the kubectl is a command line tool for communicating with a Kubernetes cluster's control plane, using the Kubernetes API. Provided by Kubernetes itself if you are new to Kubectl and[...]
Read moreAWS S3 Sync Examples - Sync S3 buckets AWS CLI
In this article, we are going to see how to use the powerful aws s3 sync CLI command. In the Linux world, if we want to compare two directories and copy the files on the same machine or between two machines over the remote (ssh) we use rsync Those who[...]
Read morePostgreSQL Start and Stop Shell Script | Devops Junction
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 moreClone 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 more