All projects

Backend / DevOps

Orchestrator

A containerized microservices platform orchestrated by Kubernetes, with persistent storage, autoscaling, service isolation, and resilient deployment.

  • Python
  • RabbitMQ
  • Docker
  • Docker Compose
  • Kubernetes
  • K3s
  • Vagrant

Overview

This project extends the original CRUD Master microservices architecture by progressively containerizing and orchestrating the entire platform.

The first phase focuses on Docker and Docker Compose, where the API Gateway, Inventory service, Billing service, PostgreSQL databases, and RabbitMQ are packaged into isolated containers and connected through a dedicated Docker network.

The second phase moves the same architecture to Kubernetes using K3s, introducing container orchestration, persistent workloads, autoscaling, secrets management, and multi-node deployment.

The project demonstrates the evolution of a microservices system from local virtual-machine deployment to reproducible containerized infrastructure and finally to a Kubernetes-managed cluster.

Features Implemented

  • Created custom Dockerfiles for each application and infrastructure component.

  • Containerized the API Gateway, Inventory API, Billing service, PostgreSQL databases, and RabbitMQ.

  • Managed the complete multi-container architecture using Docker Compose.

  • Configured a dedicated Docker network for communication between internal services.

  • Restricted external access to the API Gateway while keeping internal services isolated.

  • Added Docker volumes for PostgreSQL data persistence and API Gateway logs.

  • Configured containers to automatically restart after failures.

  • Centralized credentials and configuration using environment variables.

  • Published application container images for Kubernetes deployment.

  • Deployed the complete architecture inside a multi-node K3s cluster.

  • Created Kubernetes manifests for each application and infrastructure component.

  • Deployed the API Gateway and Inventory API using Kubernetes Deployments.

  • Added Horizontal Pod Autoscaling for the Gateway and Inventory services based on CPU usage.

  • Deployed the Billing service as a StatefulSet.

  • Deployed PostgreSQL databases as StatefulSets with persistent storage.

  • Managed credentials and sensitive configuration using Kubernetes Secrets.

  • Configured Kubernetes networking and service discovery between microservices.

  • Created a Vagrant-based K3s cluster composed of a master and agent node.

  • Automated cluster lifecycle operations through an orchestration script.

Technical Highlights

  • Evolved the infrastructure from Docker Compose to Kubernetes without changing the core microservices architecture.

  • Built isolated and reproducible service images using custom Dockerfiles.

  • Used Docker networks and Kubernetes services for internal service communication.

  • Implemented persistent storage for stateful PostgreSQL workloads using volumes and Kubernetes StatefulSets.

  • Added horizontal autoscaling for stateless services based on CPU utilization.

  • Managed application credentials securely using Kubernetes Secrets.

  • Deployed and managed the platform across a multi-node K3s cluster.

Impact

The project transformed the original microservices platform into a more portable and resilient deployment architecture.

Containerization made the services easier to reproduce and isolate, while Kubernetes introduced automated scaling, persistent state management, centralized configuration, and multi-node orchestration without changing the core application architecture.