Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 4.41 KB

README.md

File metadata and controls

82 lines (65 loc) · 4.41 KB

Kubernetes MySQL MySQL Spring Boot Minikube Docker Maven Java Thymeleaf

It is an example of SpringBoot 3.1 application with thymeleaf engine deployed on Kubernetes. The application use an a Mysql database and we show how set the Kubernetes enviorement. For this example we use minikube for realize a cluster. This is an exercise and it is one way among many to develop this type of solution. Every folder contain an explain of the project that it is inside.

SpringbootWithKubernetes

Italian Info

Deployment su Minikube (Italiano)

Questo documento descrive come effettuare il deploy dell'applicazione su Minikube utilizzando i file di configurazione di Kubernetes presenti nella directory Kubernetes Configuration.

Prerequisiti

Procedura di Deployment

  1. Apri un terminale e naviga alla root del progetto.
  2. Esegui il seguente comando avviare minikube minikube start Algorithm schema
  3. Esegui il seguente comando per applicare la configurazione di Kubernetes:
    1. kubectl apply -f Kubernetes\ Configuration e il comando
    2. minikube service app-service Algorithm schema

Risultato

Architecture

Architecture schema

Web Application in funzione

L'applicazione permette di salvare nel database la propria cripto valuta con diverse info. Il servizio permett di avere la valuta aggiornata al prezzo attuale ad ogni aggiornamento della pagina home. Algorithm schema

Spiegazione della configurazione di distribuzione

Algorithm schema

English Info

Deployment on Minikube (English)

This document describes how to deploy the application on Minikube using the Kubernetes configuration files located in the Kubernetes Configuration directory.

Prerequisites

Deployment Procedure

  1. Open a terminal and navigate to the project root.
  2. Run the following command to start minikube minikube start Algorithm schema
  3. Run the following command to apply the Kubernetes configuration:
  4. kubectl apply -f Kubernetes\ Configuration e il comando minikube service app-service Algorithm schema

Result

Web Application running

The application allows you to save your crypto currency in the database with different info. The service allows you to have the currency updated at the current price with each update of the home page. Algorithm schema

Explain the deployment and SpringBoot configuration

Algorithm schema

Architecture

Architecture schema

Algorithm schema