Full-Stack DevOps Project: From Maven Build to Kubernetes Deployment on IaC-Provisioned Infrastructure
Executive Summary
I built an end-to-end DevOps delivery pipeline for a Quarkus-based Java application. I designed and implemented a fully automated system that compiled the code, packaged it into a Docker image, stored the artifact in a private Nexus repository, provisioned the underlying infrastructure with Terraform, and deployed the container to a Kubernetes cluster that I created from scratch using Kubespray. The result was a reproducible, cloud-agnostic deployment workflow that demonstrated production-grade DevOps patterns.

Project Objectives
I defined the objectives early: I wanted to automate the build and packaging of a Quarkus microservice, create a continuous delivery workflow using Jenkins, publish versioned artifacts to Nexus, provision two Rocky Linux servers with Terraform, and build a Kubernetes cluster using Kubespray. Everything needed to be repeatable, automated, and aligned with infrastructure-as-code principles.
Architecture Overview
I designed the architecture as an integrated delivery pipeline. The Quarkus application sat at the center, built with Maven and packaged into a Docker image. Jenkins handled CI automation and pushed the final image to a private Nexus repository. Terraform provisioned two Rocky Linux virtual machines, and Kubespray transformed them into a functional Kubernetes cluster. The final deployment ran on this cluster using Kubernetes manifests that referenced the image stored in Nexus.
Application Layer: Quarkus Microservice
I developed a simple Quarkus microservice to act as the workload for the pipeline. I structured the application using Quarkus conventions, configured it through application.properties, and exposed a sample REST endpoint. I managed dependencies, plugins, and build logic through Maven in the pom.xml.


Build & Packaging Strategy (Maven + Docker)
I used Maven to run the compile, test, and package phases. Once the Java artifact was built, I created a Docker image using a lean Dockerfile optimized for Quarkus applications. I used a predictable tagging strategy tied to Jenkins build numbers so I could track and redeploy images reliably.

_

_
CI/CD Backbone: Jenkins + Nexus
I implemented the automation pipeline in Jenkins. Each commit triggered a pipeline that compiled the app, ran tests, built the Docker image, and pushed the final image to my private Nexus repository. Nexus acted as the central artifact hub so the Kubernetes cluster could later retrieve images in a controlled way.



Infrastructure Provisioning: Terraform + Rocky Linux
I used Terraform to provision the two Rocky Linux virtual machines that would become the Kubernetes nodes. The configuration defined compute resources, networking, and access so that Kubespray could connect and bootstrap the cluster. This step allowed me to rebuild the entire environment at any time with a single command.





Kubernetes Cluster Deployment: Kubespray
I deployed the Kubernetes cluster using Kubespray, which leveraged Ansible playbooks to set up a production-grade environment. I configured the inventory to include the two Rocky Linux nodes, selected the CNI plugin, and executed the playbooks. Kubespray handled the entire cluster lifecycle—from installing system packages to configuring the control plane and worker components.



Application Deployment to Kubernetes
I created the Kubernetes manifests for the Quarkus application and referenced the Docker image stored in Nexus. After applying the deployment and service files, the application became available on the cluster. I validated the rollout by checking pods, logs, and service endpoints.



Operational Layer & Validation
I validated the full pipeline by stepping through every layer—from source code commit to live deployment. The pipeline produced consistent builds, Terraform provisioned the servers exactly as described, Kubespray delivered a stable cluster, and Kubernetes orchestrated the Quarkus application successfully. This workflow demonstrated that the system operated as a cohesive, automated delivery chain.



Lessons Learned & Strategic Impact
I gained hands-on experience with java coding, cloud-agnostic automation, immutable delivery, enterprise-grade Kubernetes deployment, and integrated CI/CD design. This project showed how a complete DevOps pipeline could be built from scratch and scaled in a repeatable, versioned, and fully automated way. It strengthened my understanding of infrastructure-as-code, containerization, cluster provisioning, and delivery governance.