Skip to content

mfernd/mfe-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MFE - Kubernetes exercise

This project contains a simple application to be deployed on kubernetes as part of an assignment for the k8s course at Polytech Montpellier.

Table of contents

Repo structure

There are 5 versions branches to explore:

  • v1 -> the initial version of the app
  • v2 -> migrations: set location field to nullable | api: write, no read on location
  • v3 -> migrations: no change to DB schema | api: no write, no read on location
  • v4 -> migrations: delete column location
  • wasm -> to test deploying a service using WASI

How to deploy

Prerequisites: a k8s instance, you can easily create one with kind/k3d/...

  1. Deploy with:
make kube-deploy # or use the commands in the Makefile
  1. Once the pods are all running, you can portforward the web service to access it:
make kube-portforward

Note: To stop the app, you can run make kube-delete.

How to dev

  1. You can start the dev environment with
make dev # or docker compose up -d
  1. When you're done, stop it with
make dev-stop # or docker compose down

License

MIT