Skip to content

triethuynh1408/sample-spring-boot-on-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot on Kubernetes Demo Project Twitter

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 - Kubernetes for Developers. A detailed guide may be find in the following article: Development on Kubernetes with Okteto and Spring Boot

Mongo on Docker:

$ 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:

$ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/db-templates/mongodb-ephemeral-template.json 

About

Spring Boot on Kubernetes Demo Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 91.6%
  • Dockerfile 5.1%
  • Starlark 3.3%