https://github.com/rlnkoo/spring-crud-k8s
Spring application with full k8s configuration
https://github.com/rlnkoo/spring-crud-k8s
docker java k8s mysql spring
Last synced: 3 months ago
JSON representation
Spring application with full k8s configuration
- Host: GitHub
- URL: https://github.com/rlnkoo/spring-crud-k8s
- Owner: rlNkoo
- Created: 2024-11-19T16:24:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-19T16:29:53.000Z (over 1 year ago)
- Last Synced: 2025-08-02T07:30:11.809Z (11 months ago)
- Topics: docker, java, k8s, mysql, spring
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot CRUD Application with Kubernetes Configuration
This project is a simple Spring Boot CRUD application with full Kubernetes (k8s) deployment configuration.
## Features
- **CRUD Operations:** Functional REST API for basic Create and Read operations.
- **Kubernetes Deployment:** Ready-to-use Kubernetes manifests for deployment, service, and configuration.
- **MySQL Database Integration:** Pre-configured MySQL database connection with Secrets and ConfigMaps for managing sensitive data and database configuration.
## Folder Structure
- `src/`: Contains the Spring Boot application code.
- `Dockerfile`: Docker configuration for building the application image.
- `app-deployment.yaml`: Kubernetes Deployment and Service manifest for the Spring Boot app.
- `db-deployment.yaml`: Kubernetes Deployment and Service manifest for the MySQL database.
- `mysql-configMap.yaml`: ConfigMap for MySQL database configuration.
- `mysql-secrets.yaml`: Secrets for sensitive MySQL credentials.
- `pom.xml`: Maven configuration file for managing dependencies.
## Prerequisites
To run this project, you need:
1. **Docker** installed to build the application image.
2. **Kubernetes cluster** (e.g., Minikube, Kind, or any cloud provider's Kubernetes service).
3. **kubectl** CLI tool installed and configured to manage the Kubernetes cluster.