How to generate Terraform module docs

If you are Terraform user, you are pretty sure you know what the module is and must have used at least one community Terraform module. For those who don鈥檛 know what Terraform module is, Read more here If you are a pro user or part of the platform engineering or DevOps team, you probably must have written one. When you write the module for yourself or other groups, it鈥檚 essential to have documentation on how to use the module, input or output parameters, etc....

December 19, 2022 路 2 min 路 Suraj Narwade

Announcing Kubectl EKS Plugin v0.1.0

Hello everyone, It鈥檚 my pleasure to announce the v0.1.0 release of the Kubectl EKS Plugin. I had this of the kubectl plugin for EKS from the day I started using Amazon EKS. But I finally made it into reality and cut the first release. The mission of the kubectl EKS plugin is to simplify operations and provide easy access to cluster-related information. The first release of kubectl-eks has few but convenient functionalities....

December 19, 2022 路 2 min 路 Suraj Narwade

[SOLVED] MFA Entity already exists Error in AWS IAM

Sometimes, When IAM user tries to register a new Virtual MFA device using Google Authenticator or similar tools, they notice the following error, Entity Already exists This entity already exists. MFADevice entity at the same path and name already exists. Before adding a new virtual MFA device, ask your administrator to delete the existing device using the CLI or API. This happens because the MFA device was created but not enabled for the users....

December 18, 2022 路 1 min 路 Suraj Narwade

Terraform CLI Args, define once, use again and again

I regularly use *terraform plan -no-color* command to check the plan in a more readable way. I wrote a blog post regarding the same here. Give it a read if you haven鈥檛 already. Running this command every time is quite cumbersome. Hence I was looking for options and came across these terraform environment variables features. I can export TF_CLI_ARGS as shown below with the arg. export TF_CLI_ARGS="-no-color" Now, If I run terraform plan it will be equivalent of terraform plan -no-color...

December 18, 2022 路 1 min 路 Suraj Narwade

How to share process namespace among containers in a Kubernetes Pod

A few days ago, I was working on an application which consisted of a multi-container pod where I had to send a signal from container A to a process from container B within the same Pod. We know containers inside the pod already share the network namespace by default which means they technically have the same IP address. Apart from this, most things, such as other namespaces, are isolated. For example, process namespace....

December 17, 2022 路 4 min 路 Suraj Narwade

View Kubernetes Secrets easily

Often we find it difficult to visualize the Kubernetes secrets as they are base64 encoded. You will need to manually copy the encoded data and then decode it or write small custom shell scripts for the same. Fortunately, there鈥檚 a kubectl plugin to simplify this process. view-secret The plugin allows users to view the contents of a secret without having to decode it manually. Check out the project on GitHub:...

December 13, 2022 路 2 min 路 Suraj Narwade

Run Commands for All the clusters in your Kubeconfig in parallel

Have you ever wondered about running kubectl commands in parallel for some of your clusters? You must have written custom shell scripts or Golang scripts to do so. Fortunately, a tool to run commands in parallel now exists, Thanks to Ahmet Alp Balkan 馃檹 Check out the GitHub repo, and don鈥檛 forget to 猸愶笍 the repo :) https://github.com/ahmetb/kubectl-foreach kubectl-foreach Is a tool that allows users to run a kubectl command in one or more contexts (clusters) in parallel....

December 13, 2022 路 3 min 路 Suraj Narwade