Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piomin/sample-spring-boot-on-kubernetes
Spring Boot on Kubernetes Demo Project
https://github.com/piomin/sample-spring-boot-on-kubernetes
kubernetes maven mongo mongodb okteto okteto-cloud spring-boot spring-data spring-data-mongodb spring-devtools
Last synced: 4 days ago
JSON representation
Spring Boot on Kubernetes Demo Project
- Host: GitHub
- URL: https://github.com/piomin/sample-spring-boot-on-kubernetes
- Owner: piomin
- Created: 2020-06-15T10:22:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-26T13:11:23.000Z (5 days ago)
- Last Synced: 2025-01-26T14:21:40.664Z (5 days ago)
- Topics: kubernetes, maven, mongo, mongodb, okteto, okteto-cloud, spring-boot, spring-data, spring-data-mongodb, spring-devtools
- Language: Java
- Homepage: https://piotrminkowski.com
- Size: 83 KB
- Stars: 82
- Watchers: 4
- Forks: 70
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Spring Boot on Kubernetes Demo Project [![Twitter](https://img.shields.io/twitter/follow/piotr_minkowski.svg?style=social&logo=twitter&label=Follow%20Me)](https://twitter.com/piotr_minkowski)
[![CircleCI](https://circleci.com/gh/piomin/sample-spring-boot-on-kubernetes.svg?style=svg)](https://circleci.com/gh/piomin/sample-spring-boot-on-kubernetes)
[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-boot-on-kubernetes)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-boot-on-kubernetes&metric=bugs)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-boot-on-kubernetes)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-boot-on-kubernetes&metric=coverage)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-boot-on-kubernetes)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-boot-on-kubernetes&metric=ncloc)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-boot-on-kubernetes)In this project I'm demonstrating different mechanisms of deploying application on Kubernetes. The example application application is simple Spring Boot app that exposes some HTTP endpoints for CRUD operations and connects to MongoDB on cluster.
## Getting Started
Currently you may find here some examples of different techniques of deploying this application on Kubernetes. All the examples are described in a separated articles on my blog. Here's a full list of available examples:
1. Using [Okteto Cloud Platform](https://okteto.com/) - Kubernetes for Developers. A detailed guide may be find in the following article: [Development on Kubernetes with Okteto and Spring Boot](https://piotrminkowski.com/2020/06/15/development-on-kubernetes-with-okteto-and-spring-boot/)Mongo on Docker:
```shell
$ docker run --name mongodb -d -p 27017:27017 \
-e MONGO_INITDB_ROOT_USERNAME=springboot \
-e MONGO_INITDB_ROOT_PASSWORD=springboot123 \
-e MONGO_INITDB_DATABASE=springboot \
mongo:latest
```Mongo for OpenShift:
```shell
$ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/db-templates/mongodb-ephemeral-template.json
```