WhatsApp

Project Articles

DevOps Blog

9 in-depth project articles — each backed by real source code on GitHub. Terraform, Ansible, Docker, CI/CD, Monitoring and more.

9Articles
9GitHub Repos
FreeAlways
MK

Muhammad Kamran Kabeer

Founder & Lead DevOps Engineer · Devriston · Lahore, Pakistan

Looking for quick concept references? DevOps Notes has 40 searchable reference cards covering Linux, Docker, AWS, Terraform, CI/CD and more.

Browse DevOps Notes →
⚙️ Terraform · IaC

Building a Terraform AWS 3-Tier Platform

A modular Terraform project provisioning a complete AWS 3-tier environment — custom VPC, public/private subnets, Dockerized EC2 frontend and backend, and security groups built on least-privilege. Full source on GitHub.

VPC: 10.0.0.0/16 Public: 10.0.1.0/24 # frontend EC2 Private: 10.0.11.0/24 # backend EC2
⏱ 8 min read
📊 Monitoring · Ansible

Self-Hosted Monitoring Stack with Prometheus, Grafana, Loki & Ansible

Turning a Dell Latitude into a fully monitored node using Ansible and Docker Compose — deploying Prometheus, Grafana, Loki and Alertmanager end-to-end with zero manual steps.

Targets → Prometheus → Grafana ↓ AlertManager ↓ Slack / Email / PagerDuty
⏱ 9 min read
🐳 Docker · DevOps

Building a Production Self-Healing Container Platform

A Docker platform where services detect failures and restart themselves — health checks, watchdog service, Prometheus metrics, and Grafana dashboards that prove recovery is actually working.

healthcheck: test: ["CMD","curl","-f","http://localhost/health"] interval: 30s retries: 3 restart: unless-stopped
⏱ 8 min read
🐧 Linux · Ansible

Enterprise Samba4 Active Directory with Ansible & Linux Hardening

Enterprise-grade Samba4 AD domain automated with Ansible on Debian VMs provisioned by Vagrant — with SSH hardening, UFW, fail2ban, and Prometheus monitoring baked in from day one.

samba-tool domain provision \ --realm=LAB.DEVRISTON.PK \ --dns-backend=SAMBA_INTERNAL \ --server-role=dc
⏱ 10 min read
🔄 CI/CD · Docker

CI/CD Docker Deployment Pipeline — From Git Push to Production

A complete GitHub Actions pipeline — automated testing, Docker image build tagged with commit SHA, registry push, and zero-manual-step SSH deployment to a Linux server.

on: push: branches: [main] jobs: test → build → push → deploy ✔ Zero manual steps to production
⏱ 9 min read
🐧 Linux · Ansible

I Built a Fully Automated DevOps Workstation Using Ansible

One Ansible playbook provisions a complete DevOps environment — Terraform, Docker, Vagrant, VirtualBox, AWS CLI — idempotently on any Xubuntu/Debian machine in under 10 minutes.

git clone devops-workstation-automation ansible-playbook setup.yml \ --ask-become-pass # Full DevOps env in ~8 minutes
⏱ 8 min read
🐳 Docker

Docker Image Optimization — From 1.2GB to 68MB

A systematic walkthrough of Docker image optimization: slim base images, multi-stage builds, Alpine Linux, and layer caching — with real size measurements showing the reduction at each step.

# Size reduction at each step python:3.11 1.23 GB baseline python:3.11-slim 310 MB -75% multi-stage 148 MB -88% alpine 68 MB -94%
⏱ 7 min read
🐳 Docker · DevOps

Self-Healing Docker Services — Health Checks, Restart Policies & Watchdog

Three layers of Docker self-healing: restart policies for process crashes, health checks for unhealthy containers, and a Python watchdog service for application-level failures that health checks miss.

healthcheck: test: ["CMD","curl","-f","http://localhost/health"] restart: unless-stopped # + watchdog for app-level failures
⏱ 8 min read
☸️ Kubernetes · Ansible · IaC

Automating a Production Kubernetes Cluster with Ansible & Vagrant — Beyond minikube

A 3-node Kubernetes cluster (1 control plane + 2 workers) automated end-to-end with Ansible roles — kubeadm bootstrap, containerd runtime, Calico CNI, and automated worker joining. No minikube shortcuts.

k8s-master 192.168.56.10 # control plane worker-1 192.168.56.11 # kubelet + calico worker-2 192.168.56.12 # kubelet + calico
⏱ 11 min read

Work With Me

Need help implementing any of this?

I offer consulting for Linux, AWS, CI/CD pipelines, Docker, Terraform, and monitoring setup. Let's talk.

Book Free Consultation WhatsApp →