Posts

Featured Post

Learn How to install and configure Kubernetes Dashboard

Image
This post is part of my ongoing Kubernetes Learning Series , where I share hands-on experiments and practical implementations performed on a local Vagrant-based Kubernetes environment. Have you ever spent several minutes running multiple kubectl commands just to understand what's happening inside your cluster? The Kubernetes Dashboard solves that problem by providing a visual interface that helps you monitor, manage, and troubleshoot workloads more efficiently. In this article, I will explain the process of installing and accessing the Kubernetes Dashboard (Web UI) , which provides a graphical interface for managing and monitoring Kubernetes resources. What You'll Learn Before we begin, here is what you will learn in this tutorial: What the Kubernetes Dashboard is and why it is useful How to deploy the Kubernetes Dashboard on a Kubernetes cluster How to access the Dashboard using kubectl proxy How to create a Cluster Admin Service Account for authentication How to...

Ansible Jinja2 Templates: A Complete Guide with Examples

Image
Here I'm starting this post with famous ARISTOTLE quote. "We are what we repeatedly do. Excellence, then is not an act, but a Habit" Welcome back Ansible Automations and who are habituated as Ansible automation specialists this post for them to give boosted walk through, In this post, I would like to share my experiments with Jinja2 templates usage on the Ansible playbook. Of-course Jinja is from Japan it is world famous for templatization capabilities badvanced Ansible templating techniquesy integrating with multiple languages such as Python, Ruby, Salt talk etc. In this post we will be cover the following topics: What is Jinja2 template do in Ansible? Template with filters Template with Lists and sets Template module in Ansible Template with Flow Control Template using Looping Template inheritance** What is Jinja2 template do in Ansible? Jinja2 is another Python library created for Flask web framework, that comes part of Ansible installation. It is special ability as i...

Container Security Scanning with Snyk CLI: Detect Docker Vulnerabilities Before Production

Image
Hello DevSecOps enthusiasts! Container security has become a critical component of modern software delivery. With organizations increasingly adopting Docker and Kubernetes, identifying vulnerabilities in container images before deployment is essential to reduce security risks. In this post, we will explore how to perform container vulnerability scanning using Snyk CLI , one of the most popular DevSecOps security tools available today. Why Container Security Matters Container images often contain operating system packages, libraries, and application dependencies. If any of these components contain known vulnerabilities, attackers may exploit them to compromise your applications and infrastructure. Security scanning helps identify: Critical vulnerabilities (CVEs) Outdated packages Dependency risks Security misconfigurations License compliance issues Performing security scans early in the CI/CD pipeline is a key DevSecOps practice that helps prevent vulnerable images from reaching product...

15 Docker Command Tricks every DevfOps Engineer Should know

Image
  Docker container command Tips & Tricks Here my idea is to use the Unix/Linux 'alias' command for most those common docker container,   network, volume sub- commands to form as shorten to give you more productivity while working on developing the docker images and playing around the newly constructing containers. This trick work on bash, zsh shells. Improve Productivity with smart work alias for Docker commands   First examine the docker container listing with the powerful option '--format' docker container ps -s \ --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Size}}" docker ps command To get the logs of any applications that runs in containers we can use the following: alias dkrlogs='docker logs' alias dkrlogsf='docker logs -f ' docker logs with alias trick List of the images alias dkri='docker image ls' docker image list alias trick The container list alias dkrcs='docker container ls' d...

Ansible Automations Designing & Implementation | Best Practices | Tricks and Tips

Image
Hey DevOps, DevSecOps Engineers, SRE new bees here I am going to share the Learnings which I've executed every day found that this the best and new tip to improve the performance of ansible playbook executions sorted out and listed here. Planning and designing automation with Ansible Most common DevOps tool used for Planning and Designing is Confluence page Design document must contain a  clear " Objective " - where you will be describe why you wish to do automation on what area Tracking purpose always use a ticketing tool entry preferred tool Jira The design can be breakdown into two levels High level design where we will detail about what each task need to be covered Low level design where we discuss in-depth ideology on each task along with the possible constraints   Usage of global variables (AWX UI use extra vars, host_vars, group_vars etc) discuss their necessity AWX/Tower Job template construct possible options as input to handle overall objective, if...

Exploring git pre-commit for Secrets leaks

Image
What is GitGaurdian and ggsheild? The ggsheild is a security CLI tool developed by GitGuardian that helps developers and organizations prevent the exposure of sensitive information, such as API keys, credentials, and secrets, in their Git repositories. What are key features of ggsheild? Pre-Commit and Pre-Push Scanning: Scans code before it is committed or pushed to detect secrets. Prevents accidental leaks of sensitive data in version control. CI/CD Pipeline Integration: Works with GitHub Actions, GitLab CI/CD, Jenkins, and other CI tools. Ensures security checks are part of automated workflows. Real-Time Monitoring and Alerts: Detects exposed secrets in public or private repositories. Sends alerts and suggests remediation steps. Custom Rules & Policies: Allows defining custom regex patterns to detect organization-specific secrets. Supports allowlists to prevent false positives. How to install ggshield on Ubuntu 24.04? To install the ggshi...

Handling Git Large file system on repositories - git-lfs

Image
Hey, hello, dear DevOps, DevSecOps, and SRE team heroes!! Here I came across a new challenge to solve the common problem on Git. You may be using GitHub or GitLab or even Bitbucket for source code management. Now, a few projects, websites, or mobile apps require storing images, audio files, or video files that are larger in size. During the transfer to the client systems, they are facing the following issues: Slowness in git clone and fetch operations: files taking too long to upload or download, leading to delays in deployment and user experience Sluggish commits and status checks: some clients are encountering errors related to file size limitations, causing frustration and hindering workflow efficiency Repository size bloat Complexity in managing multiple branches It's crucial for us to explore solutions that can streamline this process and ensure smooth handling of large sized media files. Git LFS installation on Ubuntu Using the package manager command we can ...