How aryamore-1604/springbootonk8s_ps works
This is a Spring Boot order CRUD API, packaged as a container and deployed with MySQL on Kubernetes. The main request path is client → Kubernetes application service → REST controller → order service → JPA repository, with orders represented by the Order entity and persisted in MySQL. The README also documents Docker Hub image distribution, a Kubernetes database workload, and persistent storage. Controller/service/repository calls are supported by excerpts; deployment relationships and broader CRUD coverage rely on README statements, since deployment manifests and configuration were not excerpted.
Main entry points: app-deployment.yaml Spring Boot Pod · OrderRepository.java Order Repository · db-deployment.yaml MySQL Database · Dockerfile Application Image
Components 13
Order API
- Application Startup
src/main/java/com/singam/crud/SpringbootCrudK8sExampleApplication.java - Order Controller
src/main/java/com/singam/crud/controller/OrderController.java - Order Service
src/main/java/com/singam/crud/service/OrderService.java
Persistence
- Order Repository
src/main/java/com/singam/crud/repository/OrderRepository.java - Order Entity
src/main/java/com/singam/crud/entity/Order.java - MySQL Database
db-deployment.yaml
Kubernetes Deployment
- App Service
app-deployment.yaml - Spring Boot Pod
app-deployment.yaml - MySQL Service
db-deployment.yaml - Persistent Storage
db-deployment.yaml
Container Packaging
- Application Image
Dockerfile - Docker Hub
Other components
- API Client
Connections 12
- API Client → App Service: sends API requests
README.md - App Service → Spring Boot Pod: routes traffic
README.md - Spring Boot Pod → Application Startup: runs
README.md - Order Controller → Order Service: delegates operations
src/main/java/com/singam/crud/controller/OrderController.java - Order Service → Order Repository: calls persistence
src/main/java/com/singam/crud/service/OrderService.java - Order Repository → Order Entity: stores entity
src/main/java/com/singam/crud/repository/OrderRepository.java - Spring Boot Pod → Order Controller: serves REST API
- Order Repository → MySQL Database: persists orders
README.md - MySQL Service → MySQL Database: routes database traffic
README.md - MySQL Database → Persistent Storage: uses persistent storage
README.md - Application Image → Docker Hub: publishes image
README.md - Application Image → Spring Boot Pod: deploys image
README.md