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.
Questo documento descrive come effettuare il deploy dell'applicazione su Minikube utilizzando i file di configurazione di Kubernetes presenti nella directory Kubernetes Configuration
.
- Minikube installato e in esecuzione.
- kubectl Kubernetes installato.
- Installer for Docker
- Installer for Minikube
- Apri un terminale e naviga alla root del progetto.
- Esegui il seguente comando avviare minikube
minikube start
- Esegui il seguente comando per applicare la configurazione di Kubernetes:
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.
This document describes how to deploy the application on Minikube using the Kubernetes configuration files located in the Kubernetes Configuration directory.
- MinikubeMinikube installed and running.
- kubectl Kubernetes installed.
- Installer for Docker
- Installer for Minikube
- Open a terminal and navigate to the project root.
- Run the following command to start minikube
minikube start
- Run the following command to apply the Kubernetes configuration:
kubectl apply -f Kubernetes\ Configuration
e il comandominikube service app-service
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.