Home Page:
Architecture Diagram:
Neptune Stack is a fully containerized, cloud‑native microservices application designed to replicate real‑world, production‑grade Kubernetes deployments. It includes:
- React (frontend UI)
- Node.js/Express (backend API)
- PostgreSQL (database)
- Kustomize-powered Kubernetes manifests for Dev & Prod
- Systemd automation for long-running port-forwarding
It demonstrates:
- Modern DevOps workflows
- Kubernetes orchestration and scaling
- Secure container best practices
- CI/CD–ready infrastructure
- Multi‑service cloud architecture
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | React + NGINX | SPA served via container |
| Backend | Node.js (Express) | API & business logic |
| Database | PostgreSQL + PVC | Persistent reliable storage |
| Platform | Kubernetes | Orchestration, networking, scaling |
- Multi-service full-stack deployment
- Kubernetes-native scaling with HPA
- High availability via PodDisruptionBudgets
- Zero-trust segmentation using NetworkPolicies
- Secure containers (non-root, read-only FS)
- Persistent storage via PVC + StatefulSet
- Dev/Prod config via Kustomize overlays
- Automatic port-forwarding via systemd service
- Makefile-driven automation
NeptuneStack/
├── Makefile # Automation tasks
├── README.md # Documentation
├── app/ # Frontend + Backend source
│ ├── backend/ # Express API
│ └── frontend/ # React frontend
├── docker-compose.yaml # Local Dev
├── dockerhub-username.sh # Swap DockerHub image registry
├── infra/ # Infrastructure automation
│ ├── scripts/ # Install/uninstall systemd service
│ └── systemd/ # systemd unit template
└── k8s/ # Full Kubernetes manifests
├── base/ # Shared base config
├── overlays/ # Dev/Prod overlays
└── storageclass.yaml # Dynamic provisioning
chmod +x dockerhub-username.sh
./dockerhub-username.sh <your-dockerhub-username>make composemake kindmake createmake build push REG=<your-dockerhub-username>kubectl apply -f k8s/base/namespace.yaml
cp k8s/base/secret-app.example.yaml k8s/base/secret-app.yaml
nano k8s/base/secret-app.yaml
kubectl -n neptune apply -f k8s/base/secret-app.yamlDev:
make apply-devProd:
make apply-prodmake validateNeptune Stack includes an automated systemd service that exposes the Kubernetes neptune-web service directly on your local machine.
chmod +x infra/scripts/install-port-forward.sh
sudo ./infra/scripts/install-port-forward.shsudo systemctl start neptune-port-forward@<your-username>Once started, access the application at:
http://localhost
sudo systemctl status neptune-port-forward@<your-username>sudo systemctl stop neptune-port-forward@<your-username>sudo systemctl disable neptune-port-forward@<your-username>
chmod +x infra/scripts/uninstall-port-forward.sh
sudo ./infra/scripts/uninstall-port-forward.shkubectl -n neptune port-forward svc/neptune-web 80:80- RBAC with dedicated service accounts
- Zero-trust networking via NetworkPolicies
- Non-root, read-only containers
- Secrets stored securely
- PodDisruptionBudgets for HA
- Horizontal Pod Autoscaler (HPA)
- Liveness & Readiness probes
- Stateful database with PVC
- Auto-restart and self-healing deployments