Skip to main content
Headshot

Spring Boot on Kubernetes

Java App + MySQL + Minikube

Read Project Overview
Spring Boot on Kubernetes
Spring Boot on Kubernetes technology icon

About This Project

I simulated a real-world production deployment on a budget by provisioning a self-managed Kubernetes cluster on a single EC2 instance (t2.medium) using Minikube. This project demonstrates complete DevOps lifecycle ownership — from infrastructure provisioning and Docker containerization to YAML manifest deployment and cluster monitoring — while achieving ~80% cost savings over managed Kubernetes solutions.

The implementation mirrors what cloud engineers do daily: containerizing legacy applications, managing stateful data persistence, implementing health monitoring, and preparing for CI/CD integration. I built and deployed a full-stack CRUD application with Spring Boot and MySQL, emphasizing production-grade practices like persistent storage, liveness/readiness probes, and automated deployment pipelines. The project showcases infrastructure-as-code mindset with reusable Helm charts and kubectl automation, demonstrating how to deliver enterprise-grade reliability under resource constraints.

Technology Stack

Java
Spring Boot
Kubernetes
MySQL
Docker
Minikube
Maven

Impact & Results

  • Cut deployment time by ~90% from 1-2 hours to under 10 minutes through complete automation of build, push, and deploy processes
  • Achieved ~80% cost savings by avoiding managed Kubernetes (EKS) overhead in development and testing environments
  • Maintained ~99.9% application uptime via Kubernetes health checks and real-time monitoring through Kubernetes Dashboard
  • Built production-ready Docker images and reusable Helm charts enabling seamless CI/CD pipeline integration
  • Demonstrated complete infrastructure ownership and DevOps maturity while delivering enterprise-grade reliability on constrained resources

Challenges

  • Managing stateful MySQL data persistence on ephemeral pod-based infrastructure without data loss during restarts
  • Implementing comprehensive observability with liveness and readiness probes for 99.9% uptime monitoring
  • Avoiding vendor lock-in by self-hosting Kubernetes on EC2 while maintaining production-grade cluster functionality
  • Establishing reusable deployment patterns with Helm charts for future CI/CD pipeline integration and GitOps workflows

Solutions

  • Containerized Spring Boot CRUD application, built Docker image, and pushed to Docker Hub for centralized registry management
  • Provisioned Minikube cluster on EC2 t2.medium instance to simulate full Kubernetes control plane and worker node functionality
  • Configured PersistentVolumeClaims for MySQL pod storage to ensure data durability across pod lifecycle events and restarts
  • Authored comprehensive YAML manifests and used kubectl for declarative deployments with health check endpoints
  • Created Helm charts with templated configurations for repeatable deployments and future CI/CD automation via Jenkins or GitOps

Project Links

Read Project Overview

Additional Impact & Results

  • Delivered 90% faster deployment cycles through automated Docker builds and kubectl orchestration
  • Achieved 80% cost optimization by self-managing Kubernetes infrastructure on EC2 instead of managed services
  • Maintained 99.9% application availability through comprehensive health monitoring and persistent data strategies
  • Established production-ready deployment patterns with Helm charts for seamless CI/CD integration
  • Demonstrated full-stack DevOps ownership from containerization to cluster management and observability