>_
xpmahdi.dev
Available for DevOps & Site Reliability Roles

Hi, I'm Mahdi Hosseini

DevOps Engineer • Cloud-Native & Systems Infrastructure

"The Normal One in DevOps — Architecting resilient infrastructure, automated CI/CD pipelines, and reproducible container environments."

Computer Science student at Islamic Azad University (Central Tehran). Leveraging bare-metal Linux administration, Docker/k3s orchestration, and full-stack observability to automate delivery and eliminate manual operational toil.

Explore Infrastructure Get in Touch
k3s-prod-cluster — zsh
# Verifying k3s cluster & rollout status...
$ kubectl get pods -n production
api-gateway-7d8f9c6b4-xk29p    1/1   Running   14d
postgres-stateful-0           1/1   Running   14d
redis-cache-master-0          1/1   Running   14d
$ curl -sI https://api.xpmahdi.dev/healthz | head -n 1
HTTP/2 200 OK (Nginx Ingress • TLS 1.3)
[PROMETHEUS] All targets UP • Error rate: 0.00%
xpmahdi@node-01:~$ ready
Orchestrator: Kubernetes (k3s) ● Cluster Health: Optimal

Philosophy & Approach

Why "The Normal One"?

In an ecosystem cluttered with hype-driven complexity and fragile abstractions, I prioritize the bedrock: rock-solid Linux fundamentals, reproducible containers, and automated delivery pipelines.

Reproducible Infrastructure

Eliminating "it worked on my machine". Services are packaged in multi-stage Docker images, orchestrated with Compose or k3s, and backed by persistent storage volumes.

Automated CI/CD & Resilience

Manual deployments don't scale. I build automated GitHub Actions workflows for linting, testing, and image builds alongside HAProxy/Nginx load balancing for high availability.

Proactive Observability

You can't fix what you can't see. Real-time metric scraping with Prometheus, visual Grafana dashboards, and PromQL alert rules detect bottlenecks before downtime happens.

Infrastructure Toolkit

Core DevOps Competencies

DK
Docker & Compose
Multi-stage, Networks
K8s
Kubernetes (k3s)
StatefulSets, PVCs, Ingress
LX
Linux Administration
Ubuntu, systemd, LPIC-1
CI
GitHub Actions
CI/CD Pipelines & Testing
LB
Nginx & HAProxy
Reverse Proxy, SSL, HA
SH
Bash & Python
Ops Automation & FastAPI
OB
Prometheus & Grafana
Metrics, PromQL & Alerts
PG
PostgreSQL
Admin, Backup & Tuning
RD
Redis
In-Memory Caching & HA
Go
Go (Golang)
Cloud-Native Services

Infrastructure Showcase

Featured DevOps & Platform Projects

Production-grade Kubernetes clusters, high-availability proxies, and automated CI/CD stacks.

Kubernetes Orchestration k3s • Go • Redis

Self-Healing Multi-Tier Kubernetes Cluster

Deployed a multi-tier microservices architecture (Go API, Nginx frontend, Redis cache, PostgreSQL database) on a k3s cluster with Ingress traffic routing.

  • StatefulSets & PersistentVolumeClaims (PVCs)
  • Live Chaos Testing on Redis pods for self-healing
  • Readiness/Liveness probes for zero-downtime routing
View Manifests Public Repo
High Availability & Routing HAProxy • Nginx • Docker

High-Availability Sandbox & Load Balancing Lab

Fault-tolerant containerized infrastructure demonstrating Layer 4/7 load balancing, reverse proxying, automated failover, and real-time node health monitoring.

  • HAProxy & Nginx traffic distribution & SSL termination
  • Simulated backend node outages & failover drills
  • Prometheus & Grafana live telemetry integration
Containers & CI/CD Docker • GitHub Actions

CineDex — Multi-Stage Container & CI/CD Stack

Containerized FastAPI and PostgreSQL microservices stack engineered with optimized multi-stage builds, automated CI testing workflows, and persistent storage.

  • Multi-stage Dockerfile slashing image size by 60%+
  • Automated GitHub Actions linting, unit tests & builds
  • Health probes (/healthz) & Prometheus exporters
View Repository Public Repo

Interactive DevOps Sandbox

Inspect Production Configs & Pipelines

Switch between a Multi-Stage Dockerfile, Kubernetes StatefulSet, and GitHub Actions CI Workflow:

# Dockerfile - Hardened Multi-Stage Production Build (-60% Image Size)
FROM python:3.12-slim AS builder
WORKDIR /build
COPY requirements.txt .
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /build/wheels -r requirements.txt

FROM python:3.12-slim AS runtime
RUN useradd --create-home --shell /bin/bash appuser
WORKDIR /app
COPY --from=builder /build/wheels /wheels
RUN pip install --no-cache /wheels/* && rm -rf /wheels
COPY --chown=appuser:appuser . .

USER appuser
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:8000/healthz || exit 1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

Let's Connect & Build Resilient Infrastructure

Open to DevOps Engineer roles, platform infrastructure projects, and cloud-native engineering collaborations.

Send an Email
GitHub LinkedIn • Tehran, Iran 📍