maj readme

This commit is contained in:
Grégory Lebreton 2023-10-29 10:54:35 +01:00
parent 4aaa3e8618
commit 3e128ca416

View File

@ -1,22 +1,13 @@
# Kubernetes
# Kubernetes exemple avec Flask / Postgres et Vue
### Docker
### Docker :whale:
Build the images and spin up the containers:
Construire les images et démarrer les services:
```bash
docker-compose up -d --build
```
Run the migrations and seed the database:
```bash
docker-compose exec server python manage.py recreate_db
docker-compose exec server python manage.py seed_db
```
Test it out at:
1. [http://localhost:8080/](http://localhost:8080/)
1. [http://localhost:5001/books/ping](http://localhost:5001/books/ping)
1. [http://localhost:5001/books](http://localhost:5001/books)
@ -161,6 +152,13 @@ Try it out:
> [http://hello.world/](http://hello.world/).
### Todo
- [ ] commandes kubectl utiles + mise à l'échelle
- [ ] changer hello.world
- [ ] transposer ver K8S multinode
- [ ] traduire vue.js templates
### Source
[source](https://testdriven.io/running-flask-on-kubernetes).
[source testdriven.io](https://testdriven.io/running-flask-on-kubernetes).